GetRelationalDatabaseSnapshotsResult.fromJson constructor

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

Implementation

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