toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final roleArn = this.roleArn;
  final allAwsRegions = this.allAwsRegions;
  final awsRegions = this.awsRegions;
  return {
    'RoleArn': roleArn,
    if (allAwsRegions != null) 'AllAwsRegions': allAwsRegions,
    if (awsRegions != null) 'AwsRegions': awsRegions,
  };
}