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