toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final optionName = this.optionName;
  final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships;
  final optionSettings = this.optionSettings;
  final optionVersion = this.optionVersion;
  final port = this.port;
  final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships;
  return {
    'OptionName': optionName,
    if (dBSecurityGroupMemberships != null)
      'DBSecurityGroupMemberships': dBSecurityGroupMemberships,
    if (optionSettings != null) 'OptionSettings': optionSettings,
    if (optionVersion != null) 'OptionVersion': optionVersion,
    if (port != null) 'Port': port,
    if (vpcSecurityGroupMemberships != null)
      'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships,
  };
}