toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final accountId = this.accountId;
  final region = this.region;
  final resourceId = this.resourceId;
  final resourceName = this.resourceName;
  return {
    if (accountId != null) 'AccountId': accountId,
    if (region != null) 'Region': region,
    if (resourceId != null) 'ResourceId': resourceId,
    if (resourceName != null) 'ResourceName': resourceName,
  };
}