ImageProfile.fromJson constructor

ImageProfile.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ImageProfile.fromJson(Map<String, dynamic> json) => ImageProfile(
      bitmapMemoryConsumption: json.containsKey("bitmapMemoryConsumption")
          ? (json["bitmapMemoryConsumption"] as int)
          : 0,
      hibernationMemoryConsumption:
          json.containsKey("hibernationMemoryConsumption")
              ? (json["hibernationMemoryConsumption"] as int)
              : 0,
    );