fbmobile/lib/core/models/rest/history_response.dart

23 lines
503 B
Dart
Raw Normal View History

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;
HistoryResponse({this.status, this.data});
// JSON Init
factory HistoryResponse.fromJson(Map<String, dynamic> json) => _$HistoryResponseFromJson(json);
// JSON Export
Map<String, dynamic> toJson() => _$HistoryResponseToJson(this);
}