toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final arn = this.arn;
  final assumeRolePolicyDocument = this.assumeRolePolicyDocument;
  final createDate = this.createDate;
  final path = this.path;
  final roleId = this.roleId;
  final roleName = this.roleName;
  return {
    if (arn != null) 'Arn': arn,
    if (assumeRolePolicyDocument != null)
      'AssumeRolePolicyDocument': assumeRolePolicyDocument,
    if (createDate != null) 'CreateDate': createDate,
    if (path != null) 'Path': path,
    if (roleId != null) 'RoleId': roleId,
    if (roleName != null) 'RoleName': roleName,
  };
}