fbmobile/lib/core/models/rest/config_response.dart
2023-01-16 01:44:51 +01:00

23 lines
519 B
Dart

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});
// JSON Init
factory ConfigResponse.fromJson(Map<String, dynamic> json) =>
_$ConfigResponseFromJson(json);
// JSON Export
Map<String, dynamic> toJson() => _$ConfigResponseToJson(this);
}