Snapshot.fromJson constructor

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

Implementation

factory Snapshot.fromJson(Map<String, dynamic> json) {
  return Snapshot(
    directoryId: json['DirectoryId'] as String?,
    name: json['Name'] as String?,
    snapshotId: json['SnapshotId'] as String?,
    startTime: timeStampFromJson(json['StartTime']),
    status: (json['Status'] as String?)?.toSnapshotStatus(),
    type: (json['Type'] as String?)?.toSnapshotType(),
  );
}