2021-02-02 14:33:23 +00:00
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
import 'history.dart';
|
|
|
|
|
|
|
|
part 'history_response.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable()
|
|
|
|
class HistoryResponse {
|
|
|
|
@JsonKey(required: true)
|
|
|
|
final String status;
|
|
|
|
|
|
|
|
@JsonKey(required: true)
|
|
|
|
final History data;
|
|
|
|
|
2021-11-29 23:44:22 +00:00
|
|
|
HistoryResponse({required this.status, required this.data});
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
// JSON Init
|
2022-06-22 22:44:08 +00:00
|
|
|
factory HistoryResponse.fromJson(Map<String, dynamic> json) => _$HistoryResponseFromJson(json);
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
// JSON Export
|
|
|
|
Map<String, dynamic> toJson() => _$HistoryResponseToJson(this);
|
|
|
|
}
|