toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (userEmail != null) {
    _json['userEmail'] = userEmail;
  }
  if (userPhoneNumber != null) {
    _json['userPhoneNumber'] = userPhoneNumber;
  }
  if (userTag != null) {
    _json['userTag'] = userTag;
  }
  if (userName != null) {
    _json['userName'] = userName;
  }
  if (organizationName != null) {
    _json['organizationName'] = organizationName;
  }
  if (verificationToken != null) {
    _json['verificationToken'] = verificationToken;
  }
  _json['apiKeys'] = apiKeys.map((e) => e.toJson()).toList();
  _json['authenticators'] = authenticators.map((e) => e.toJson()).toList();
  _json['oauthProviders'] = oauthProviders.map((e) => e.toJson()).toList();
  if (wallet != null) {
    _json['wallet'] = wallet?.toJson();
  }
  return _json;
}