GlobalTable.fromJson constructor

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

Implementation

factory GlobalTable.fromJson(Map<String, dynamic> json) {
  return GlobalTable(
    globalTableName: json['GlobalTableName'] as String?,
    replicationGroup: (json['ReplicationGroup'] as List?)
        ?.whereNotNull()
        .map((e) => Replica.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}