toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.accountId != null) {
    json[r'accountId'] = this.accountId;
  } else {
    json[r'accountId'] = null;
  }
  if (this.agent != null) {
    json[r'agent'] = this.agent;
  } else {
    json[r'agent'] = null;
  }
  if (this.chain != null) {
    json[r'chain'] = this.chain;
  } else {
    json[r'chain'] = null;
  }
  if (this.custody != null) {
    json[r'custody'] = this.custody;
  } else {
    json[r'custody'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.tier != null) {
    json[r'tier'] = this.tier;
  } else {
    json[r'tier'] = null;
  }
  return json;
}