toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final automatedSnapshotRetentionPeriod =
      this.automatedSnapshotRetentionPeriod;
  final clusterIdentifier = this.clusterIdentifier;
  final clusterType = this.clusterType;
  final clusterVersion = this.clusterVersion;
  final encryptionType = this.encryptionType;
  final enhancedVpcRouting = this.enhancedVpcRouting;
  final maintenanceTrackName = this.maintenanceTrackName;
  final masterUserPassword = this.masterUserPassword;
  final nodeType = this.nodeType;
  final numberOfNodes = this.numberOfNodes;
  final publiclyAccessible = this.publiclyAccessible;
  return {
    if (automatedSnapshotRetentionPeriod != null)
      'AutomatedSnapshotRetentionPeriod': automatedSnapshotRetentionPeriod,
    if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier,
    if (clusterType != null) 'ClusterType': clusterType,
    if (clusterVersion != null) 'ClusterVersion': clusterVersion,
    if (encryptionType != null) 'EncryptionType': encryptionType,
    if (enhancedVpcRouting != null) 'EnhancedVpcRouting': enhancedVpcRouting,
    if (maintenanceTrackName != null)
      'MaintenanceTrackName': maintenanceTrackName,
    if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword,
    if (nodeType != null) 'NodeType': nodeType,
    if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes,
    if (publiclyAccessible != null) 'PubliclyAccessible': publiclyAccessible,
  };
}