toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final regionName = this.regionName;
  final globalSecondaryIndexes = this.globalSecondaryIndexes;
  final kMSMasterKeyId = this.kMSMasterKeyId;
  final provisionedThroughputOverride = this.provisionedThroughputOverride;
  return {
    'RegionName': regionName,
    if (globalSecondaryIndexes != null)
      'GlobalSecondaryIndexes': globalSecondaryIndexes,
    if (kMSMasterKeyId != null) 'KMSMasterKeyId': kMSMasterKeyId,
    if (provisionedThroughputOverride != null)
      'ProvisionedThroughputOverride': provisionedThroughputOverride,
  };
}