fbmobile/lib/core/models/rest/config_response.dart
2021-02-02 15:33:23 +01:00

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