GetRelationalDatabaseEventsResult.fromJson constructor

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

Implementation

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