Table.fromJson constructor

Table.fromJson(
  1. Map json_
)

Implementation

Table.fromJson(core.Map json_)
    : this(
        automatedBackupPolicy: json_.containsKey('automatedBackupPolicy')
            ? AutomatedBackupPolicy.fromJson(json_['automatedBackupPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        changeStreamConfig: json_.containsKey('changeStreamConfig')
            ? ChangeStreamConfig.fromJson(json_['changeStreamConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        clusterStates: json_.containsKey('clusterStates')
            ? (json_['clusterStates'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  ClusterState.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        columnFamilies: json_.containsKey('columnFamilies')
            ? (json_['columnFamilies'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  ColumnFamily.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        deletionProtection: json_.containsKey('deletionProtection')
            ? json_['deletionProtection'] as core.bool
            : null,
        granularity: json_.containsKey('granularity')
            ? json_['granularity'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        restoreInfo: json_.containsKey('restoreInfo')
            ? RestoreInfo.fromJson(
                json_['restoreInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        stats: json_.containsKey('stats')
            ? TableStats.fromJson(
                json_['stats'] as core.Map<core.String, core.dynamic>)
            : null,
      );