toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final assumeRolePolicyDocument = this.assumeRolePolicyDocument;
  final attachedManagedPolicies = this.attachedManagedPolicies;
  final createDate = this.createDate;
  final instanceProfileList = this.instanceProfileList;
  final maxSessionDuration = this.maxSessionDuration;
  final path = this.path;
  final permissionsBoundary = this.permissionsBoundary;
  final roleId = this.roleId;
  final roleName = this.roleName;
  final rolePolicyList = this.rolePolicyList;
  return {
    if (assumeRolePolicyDocument != null)
      'AssumeRolePolicyDocument': assumeRolePolicyDocument,
    if (attachedManagedPolicies != null)
      'AttachedManagedPolicies': attachedManagedPolicies,
    if (createDate != null) 'CreateDate': createDate,
    if (instanceProfileList != null)
      'InstanceProfileList': instanceProfileList,
    if (maxSessionDuration != null) 'MaxSessionDuration': maxSessionDuration,
    if (path != null) 'Path': path,
    if (permissionsBoundary != null)
      'PermissionsBoundary': permissionsBoundary,
    if (roleId != null) 'RoleId': roleId,
    if (roleName != null) 'RoleName': roleName,
    if (rolePolicyList != null) 'RolePolicyList': rolePolicyList,
  };
}