toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (userId != null) {
    json[r'UserId'] = userId;
  }
  if (roles != null) {
    json[r'Roles'] = roles;
  }
  if (name != null) {
    json[r'Name'] = name;
  }
  if (memberType != null) {
    json[r'MemberType'] = memberType;
  }
  if (effectivePermissionSet != null) {
    json[r'EffectivePermissionSet'] = effectivePermissionSet;
  }
  return json;
}