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

22 lines
546 B
Dart
Raw Normal View History

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
2023-01-16 00:44:34 +00:00
factory CreateApiKeyResponse.fromJson(Map<String, dynamic> json) =>
_$CreateApiKeyResponseFromJson(json);
// JSON Export
Map<String, dynamic> toJson() => _$CreateApiKeyResponseToJson(this);
}