toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> params = {};
  if ((email ?? '').isNotEmpty) {
    params['email'] = email;
  }
  if ((userName ?? '').isNotEmpty) {
    params['userName'] = userName;
  }
  if (provider != null) {
    params['provider'] = provider;
  }
  if ((address ?? '').isNotEmpty) {
    params['address'] = address;
  }
  if (chainId != null) {
    params['chainId'] = chainId;
  }

  return params;
}