toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final attachedManagedPolicies = this.attachedManagedPolicies;
  final createDate = this.createDate;
  final groupList = this.groupList;
  final path = this.path;
  final permissionsBoundary = this.permissionsBoundary;
  final userId = this.userId;
  final userName = this.userName;
  final userPolicyList = this.userPolicyList;
  return {
    if (attachedManagedPolicies != null)
      'AttachedManagedPolicies': attachedManagedPolicies,
    if (createDate != null) 'CreateDate': createDate,
    if (groupList != null) 'GroupList': groupList,
    if (path != null) 'Path': path,
    if (permissionsBoundary != null)
      'PermissionsBoundary': permissionsBoundary,
    if (userId != null) 'UserId': userId,
    if (userName != null) 'UserName': userName,
    if (userPolicyList != null) 'UserPolicyList': userPolicyList,
  };
}