mirror of
https://github.com/foss42/apidash.git
synced 2025-06-26 01:56:12 +08:00
Update JsonKey
This commit is contained in:
@ -27,10 +27,10 @@ class PostmanCollection with _$PostmanCollection {
|
||||
@freezed
|
||||
class Info with _$Info {
|
||||
const factory Info({
|
||||
String? postmanId,
|
||||
@JsonKey(name: '_postman_id') String? postmanId,
|
||||
String? name,
|
||||
String? schema,
|
||||
String? exporterId,
|
||||
@JsonKey(name: '_exporter_id') String? exporterId,
|
||||
}) = _Info;
|
||||
|
||||
factory Info.fromJson(Map<String, dynamic> json) => _$InfoFromJson(json);
|
||||
|
@ -215,9 +215,11 @@ Info _$InfoFromJson(Map<String, dynamic> json) {
|
||||
|
||||
/// @nodoc
|
||||
mixin _$Info {
|
||||
@JsonKey(name: '_postman_id')
|
||||
String? get postmanId => throw _privateConstructorUsedError;
|
||||
String? get name => throw _privateConstructorUsedError;
|
||||
String? get schema => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: '_exporter_id')
|
||||
String? get exporterId => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this Info to a JSON map.
|
||||
@ -235,7 +237,10 @@ abstract class $InfoCopyWith<$Res> {
|
||||
_$InfoCopyWithImpl<$Res, Info>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String? postmanId, String? name, String? schema, String? exporterId});
|
||||
{@JsonKey(name: '_postman_id') String? postmanId,
|
||||
String? name,
|
||||
String? schema,
|
||||
@JsonKey(name: '_exporter_id') String? exporterId});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@ -287,7 +292,10 @@ abstract class _$$InfoImplCopyWith<$Res> implements $InfoCopyWith<$Res> {
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{String? postmanId, String? name, String? schema, String? exporterId});
|
||||
{@JsonKey(name: '_postman_id') String? postmanId,
|
||||
String? name,
|
||||
String? schema,
|
||||
@JsonKey(name: '_exporter_id') String? exporterId});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@ -331,18 +339,24 @@ class __$$InfoImplCopyWithImpl<$Res>
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$InfoImpl implements _Info {
|
||||
const _$InfoImpl({this.postmanId, this.name, this.schema, this.exporterId});
|
||||
const _$InfoImpl(
|
||||
{@JsonKey(name: '_postman_id') this.postmanId,
|
||||
this.name,
|
||||
this.schema,
|
||||
@JsonKey(name: '_exporter_id') this.exporterId});
|
||||
|
||||
factory _$InfoImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$InfoImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: '_postman_id')
|
||||
final String? postmanId;
|
||||
@override
|
||||
final String? name;
|
||||
@override
|
||||
final String? schema;
|
||||
@override
|
||||
@JsonKey(name: '_exporter_id')
|
||||
final String? exporterId;
|
||||
|
||||
@override
|
||||
@ -386,20 +400,22 @@ class _$InfoImpl implements _Info {
|
||||
|
||||
abstract class _Info implements Info {
|
||||
const factory _Info(
|
||||
{final String? postmanId,
|
||||
{@JsonKey(name: '_postman_id') final String? postmanId,
|
||||
final String? name,
|
||||
final String? schema,
|
||||
final String? exporterId}) = _$InfoImpl;
|
||||
@JsonKey(name: '_exporter_id') final String? exporterId}) = _$InfoImpl;
|
||||
|
||||
factory _Info.fromJson(Map<String, dynamic> json) = _$InfoImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: '_postman_id')
|
||||
String? get postmanId;
|
||||
@override
|
||||
String? get name;
|
||||
@override
|
||||
String? get schema;
|
||||
@override
|
||||
@JsonKey(name: '_exporter_id')
|
||||
String? get exporterId;
|
||||
|
||||
/// Create a copy of Info
|
||||
|
@ -25,18 +25,18 @@ Map<String, dynamic> _$$PostmanCollectionImplToJson(
|
||||
};
|
||||
|
||||
_$InfoImpl _$$InfoImplFromJson(Map<String, dynamic> json) => _$InfoImpl(
|
||||
postmanId: json['postmanId'] as String?,
|
||||
postmanId: json['_postman_id'] as String?,
|
||||
name: json['name'] as String?,
|
||||
schema: json['schema'] as String?,
|
||||
exporterId: json['exporterId'] as String?,
|
||||
exporterId: json['_exporter_id'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$InfoImplToJson(_$InfoImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'postmanId': instance.postmanId,
|
||||
'_postman_id': instance.postmanId,
|
||||
'name': instance.name,
|
||||
'schema': instance.schema,
|
||||
'exporterId': instance.exporterId,
|
||||
'_exporter_id': instance.exporterId,
|
||||
};
|
||||
|
||||
_$ItemImpl _$$ItemImplFromJson(Map<String, dynamic> json) => _$ItemImpl(
|
||||
|
Reference in New Issue
Block a user