mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
20 lines
413 B
Dart
20 lines
413 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'invoke_request.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class InvokeRequest {
|
|
String method;
|
|
List<dynamic> params;
|
|
|
|
InvokeRequest({
|
|
this.method = '',
|
|
this.params = const [],
|
|
});
|
|
|
|
factory InvokeRequest.fromJson(Map<String, dynamic> json) =>
|
|
_$InvokeRequestFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$InvokeRequestToJson(this);
|
|
}
|