part of 'methods.dart'; class ElectrumWorkerGetVersionRequest implements ElectrumWorkerRequest { ElectrumWorkerGetVersionRequest({this.id}); final int? id; @override final String method = ElectrumRequestMethods.version.method; @override factory ElectrumWorkerGetVersionRequest.fromJson(Map json) { return ElectrumWorkerGetVersionRequest(id: json['id'] as int?); } @override Map toJson() { return {'method': method}; } } class ElectrumWorkerGetVersionError extends ElectrumWorkerErrorResponse { ElectrumWorkerGetVersionError({ required super.error, super.id, }) : super(); @override String get method => ElectrumRequestMethods.version.method; } class ElectrumWorkerGetVersionResponse extends ElectrumWorkerResponse, List> { ElectrumWorkerGetVersionResponse({ required super.result, super.error, super.id, }) : super(method: ElectrumRequestMethods.version.method); @override List resultJson(result) { return result; } @override factory ElectrumWorkerGetVersionResponse.fromJson(Map json) { return ElectrumWorkerGetVersionResponse( result: json['result'] as List, error: json['error'] as String?, id: json['id'] as int?, ); } }