21 lines
546 B
Dart
21 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);
|
|
}
|