GetInstanceSnapshotsResult.fromJson constructor

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

Implementation

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