toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (teamId != null) {
    _json[r'team_id'] = teamId;
  }
  if (userId != null) {
    _json[r'user_id'] = userId;
  }
  if (roles != null) {
    _json[r'roles'] = roles;
  }
  if (deleteAt != null) {
    _json[r'delete_at'] = deleteAt;
  }
  if (schemeUser != null) {
    _json[r'scheme_user'] = schemeUser;
  }
  if (schemeAdmin != null) {
    _json[r'scheme_admin'] = schemeAdmin;
  }
  if (explicitRoles != null) {
    _json[r'explicit_roles'] = explicitRoles;
  }
  return _json;
}