toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (slot != null) {
    _json[r'slot'] = slot;
  } else {
    _json[r'slot'] = null;
  }
  if (confirmations != null) {
    _json[r'confirmations'] = confirmations;
  } else {
    _json[r'confirmations'] = null;
  }
  if (err != null) {
    _json[r'err'] = err;
  } else {
    _json[r'err'] = null;
  }
  if (confirmationStatus != null) {
    _json[r'confirmationStatus'] = confirmationStatus;
  } else {
    _json[r'confirmationStatus'] = null;
  }
  return _json;
}