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

22 lines
546 B
Dart

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