33 lines
1.1 KiB
Dart
33 lines
1.1 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'potions_dto.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
PotionsDto _$PotionsDtoFromJson(Map<String, dynamic> json) => PotionsDto(
|
||
|
data: (json['data'] as List<dynamic>?)
|
||
|
?.map((e) => PotionDataDto.fromJson(e as Map<String, dynamic>))
|
||
|
.toList(),
|
||
|
);
|
||
|
|
||
|
PotionDataDto _$PotionDataDtoFromJson(Map<String, dynamic> json) =>
|
||
|
PotionDataDto(
|
||
|
id: json['id'] as String?,
|
||
|
type: json['type'] as String?,
|
||
|
attributes: json['attributes'] == null
|
||
|
? null
|
||
|
: PotionAttributesDataDto.fromJson(
|
||
|
json['attributes'] as Map<String, dynamic>),
|
||
|
);
|
||
|
|
||
|
PotionAttributesDataDto _$PotionAttributesDataDtoFromJson(
|
||
|
Map<String, dynamic> json) =>
|
||
|
PotionAttributesDataDto(
|
||
|
name: json['name'] as String?,
|
||
|
characteristics: json['characteristics'] as String?,
|
||
|
effect: json['effect'] as String?,
|
||
|
image: json['image'] as String?,
|
||
|
);
|