22 lines
797 B
Dart
22 lines
797 B
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'coins_dto.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
CoinsDto _$CoinsDtoFromJson(Map<String, dynamic> json) => CoinsDto(
|
||
|
coins: (json['coins'] as List<dynamic>?)
|
||
|
?.map((e) => CoinDataDto.fromJson(e as Map<String, dynamic>))
|
||
|
.toList(),
|
||
|
);
|
||
|
|
||
|
CoinDataDto _$CoinDataDtoFromJson(Map<String, dynamic> json) => CoinDataDto(
|
||
|
id: json['id'] as String?,
|
||
|
name: json['name'] as String?,
|
||
|
image: json['image'] as String?,
|
||
|
currentPrice: (json['currentPrice'] as num?)?.toDouble(),
|
||
|
priceChange24h: (json['priceChange24h'] as num?)?.toDouble(),
|
||
|
);
|