toJson method

Map<String, dynamic> toJson()

Implementation

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

  return params;
}