// GENERATED CODE - DO NOT MODIFY BY HAND part of 'components.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Components _$ComponentsFromJson(Map json) { $checkKeys( json, allowedKeys: const ['securitySchemes', 'schemas'], ); return Components( securitySchemes: (json['securitySchemes'] as Map?)?.map( (k, e) => MapEntry(k, SecurityScheme.fromJson(e as Map)), ), schemas: (json['schemas'] as Map?)?.map( (k, e) => MapEntry(k, Schema.fromJson(e as Map)), ), ); } Map _$ComponentsToJson(Components instance) { final val = {}; void writeNotNull(String key, dynamic value) { if (value != null) { val[key] = value; } } writeNotNull('securitySchemes', instance.securitySchemes?.map((k, e) => MapEntry(k, e.toJson()))); writeNotNull('schemas', instance.schemas?.map((k, e) => MapEntry(k, e.toJson()))); return val; }