toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final roleArn = this.roleArn;
  final templateBody = this.templateBody;
  return {
    if (roleArn != null) 'roleArn': roleArn,
    if (templateBody != null) 'templateBody': templateBody,
  };
}