toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json['walletAccountId'] = walletAccountId;
  _json['organizationId'] = organizationId;
  _json['walletId'] = walletId;
  _json['curve'] = v1CurveToJson(curve);
  _json['pathFormat'] = v1PathFormatToJson(pathFormat);
  _json['path'] = path;
  _json['addressFormat'] = v1AddressFormatToJson(addressFormat);
  _json['address'] = address;
  _json['createdAt'] = createdAt.toJson();
  _json['updatedAt'] = updatedAt.toJson();
  if (publicKey != null) {
    _json['publicKey'] = publicKey;
  }
  if (walletDetails != null) {
    _json['walletDetails'] = walletDetails?.toJson();
  }
  return _json;
}