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

24 lines
519 B
Dart
Raw Permalink Normal View History

2021-02-02 14:33:23 +00:00
import 'package:json_annotation/json_annotation.dart';
import 'config.dart';
part 'config_response.g.dart';
@JsonSerializable()
class ConfigResponse {
@JsonKey(required: true)
final String status;
@JsonKey(required: true)
final Config data;
ConfigResponse({required this.status, required this.data});
2021-02-02 14:33:23 +00:00
// JSON Init
2023-01-16 00:44:34 +00:00
factory ConfigResponse.fromJson(Map<String, dynamic> json) =>
_$ConfigResponseFromJson(json);
2021-02-02 14:33:23 +00:00
// JSON Export
Map<String, dynamic> toJson() => _$ConfigResponseToJson(this);
}