toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final accountId = this.accountId;
  final region = this.region;
  final resourceType = this.resourceType;
  return {
    if (accountId != null) 'AccountId': accountId,
    if (region != null) 'Region': region,
    if (resourceType != null) 'ResourceType': resourceType.toValue(),
  };
}