InstanceSnapshotInfo.fromJson constructor

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

Implementation

factory InstanceSnapshotInfo.fromJson(Map<String, dynamic> json) {
  return InstanceSnapshotInfo(
    fromBlueprintId: json['fromBlueprintId'] as String?,
    fromBundleId: json['fromBundleId'] as String?,
    fromDiskInfo: (json['fromDiskInfo'] as List?)
        ?.whereNotNull()
        .map((e) => DiskInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}