// GENERATED CODE - DO NOT MODIFY BY HAND part of 'path_item.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** PathItem _$PathItemFromJson(Map json) { $checkKeys( json, allowedKeys: const [ 'description', 'parameters', 'get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace' ], ); return PathItem( description: json['description'] as String?, parameters: (json['parameters'] as List?)?.map((e) => Parameter.fromJson(e as Map)).toList(), get: json['get'] == null ? null : Operation.fromJson(json['get'] as Map), put: json['put'] == null ? null : Operation.fromJson(json['put'] as Map), post: json['post'] == null ? null : Operation.fromJson(json['post'] as Map), delete: json['delete'] == null ? null : Operation.fromJson(json['delete'] as Map), options: json['options'] == null ? null : Operation.fromJson(json['options'] as Map), head: json['head'] == null ? null : Operation.fromJson(json['head'] as Map), patch: json['patch'] == null ? null : Operation.fromJson(json['patch'] as Map), trace: json['trace'] == null ? null : Operation.fromJson(json['trace'] as Map), ); } Map _$PathItemToJson(PathItem instance) { final val = {}; void writeNotNull(String key, dynamic value) { if (value != null) { val[key] = value; } } writeNotNull('description', instance.description); writeNotNull('parameters', instance.parameters?.map((e) => e.toJson()).toList()); writeNotNull('get', instance.get?.toJson()); writeNotNull('put', instance.put?.toJson()); writeNotNull('post', instance.post?.toJson()); writeNotNull('delete', instance.delete?.toJson()); writeNotNull('options', instance.options?.toJson()); writeNotNull('head', instance.head?.toJson()); writeNotNull('patch', instance.patch?.toJson()); writeNotNull('trace', instance.trace?.toJson()); return val; }