toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (loginId != null) {
    _json[r'login_id'] = loginId;
  }
  if (token != null) {
    _json[r'token'] = token;
  }
  if (deviceId != null) {
    _json[r'device_id'] = deviceId;
  }
  if (ldapOnly != null) {
    _json[r'ldap_only'] = ldapOnly;
  }
  if (password != null) {
    _json[r'password'] = password;
  }
  return _json;
}