GetDiskSnapshotsResult.fromJson constructor

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

Implementation

factory GetDiskSnapshotsResult.fromJson(Map<String, dynamic> json) {
  return GetDiskSnapshotsResult(
    diskSnapshots: (json['diskSnapshots'] as List?)
        ?.whereNotNull()
        .map((e) => DiskSnapshot.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageToken: json['nextPageToken'] as String?,
  );
}