GetDatabasesResponse.fromJson constructor

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

Implementation

factory GetDatabasesResponse.fromJson(Map<String, dynamic> json) {
  return GetDatabasesResponse(
    databaseList: (json['DatabaseList'] as List)
        .whereNotNull()
        .map((e) => Database.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}