toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final fromAddress = this.fromAddress;
  final identity = this.identity;
  final configurationSet = this.configurationSet;
  final enabled = this.enabled;
  final roleArn = this.roleArn;
  return {
    'FromAddress': fromAddress,
    'Identity': identity,
    if (configurationSet != null) 'ConfigurationSet': configurationSet,
    if (enabled != null) 'Enabled': enabled,
    if (roleArn != null) 'RoleArn': roleArn,
  };
}