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

23 lines
527 B
Dart

import 'package:json_annotation/json_annotation.dart';
import 'apikeys.dart';
part 'apikeys_response.g.dart';
@JsonSerializable()
class ApiKeysResponse {
@JsonKey(required: true)
final String status;
@JsonKey(required: true)
final ApiKeys data;
ApiKeysResponse({required this.status, required this.data});
// JSON Init
factory ApiKeysResponse.fromJson(Map<String, dynamic> json) =>
_$ApiKeysResponseFromJson(json);
// JSON Export
Map<String, dynamic> toJson() => _$ApiKeysResponseToJson(this);
}