ImageRefPoolSnapshot.fromJson constructor

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

Implementation

factory ImageRefPoolSnapshot.fromJson(Map<String, dynamic> json) =>
    ImageRefPoolSnapshot(
      imageRefProfiles: (json["imageRefProfiles"] as List<dynamic>)
          .map((it) => ImageRefProfile.fromJson(it as Map<String, dynamic>))
          .toList(),
      totalMemoryConsumption: json.containsKey("totalMemoryConsumption")
          ? (json["totalMemoryConsumption"] as int)
          : 0,
    );