toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
    _json[r'commitment'] = commitment;
    _json[r'account'] = account;
    _json[r'environment'] = environment;
    _json[r'index'] = index;
    _json[r'mint'] = mint;
  if (referenceId != null) {
    _json[r'referenceId'] = referenceId;
  } else {
    _json[r'referenceId'] = null;
  }
  if (referenceType != null) {
    _json[r'referenceType'] = referenceType;
  } else {
    _json[r'referenceType'] = null;
  }
  return _json;
}