# ImageRefPoolSnapshotsDiff.fromJson constructor

ImageRefPoolSnapshotsDiff.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory ImageRefPoolSnapshotsDiff.fromJson(Map<String, dynamic> json) =>
        ImageRefPoolSnapshotsDiff(
          totalMemoryConsumptionDiff:
              json.containsKey("totalMemoryConsumptionDiff")
                  ? (json["totalMemoryConsumptionDiff"] as int)
                  : 0,
          removed: (json["removed"] as List<dynamic>)
              .map((it) => it as String)
              .toList(),
          added:
              (json["added"] as List<dynamic>).map((it) => it as String).toList(),
          modified: (json["modified"] as List<dynamic>)
              .map((it) => it as String)
              .toList(),
        );