toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  _json['txStatus'] = txStatus;
  if (eth != null) {
    _json['eth'] = eth?.toJson();
  }
  if (txError != null) {
    _json['txError'] = txError;
  }
  if (error != null) {
    _json['error'] = error?.toJson();
  }
  return _json;
}