AutoSnapshotDetails.fromJson constructor

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

Implementation

factory AutoSnapshotDetails.fromJson(Map<String, dynamic> json) {
  return AutoSnapshotDetails(
    createdAt: timeStampFromJson(json['createdAt']),
    date: json['date'] as String?,
    fromAttachedDisks: (json['fromAttachedDisks'] as List?)
        ?.whereNotNull()
        .map((e) => AttachedDisk.fromJson(e as Map<String, dynamic>))
        .toList(),
    status: (json['status'] as String?)?.toAutoSnapshotStatus(),
  );
}