olshab a676d454ca implemented mock crypto repository
changed Cupertino search bar to Material UI 3
changed baseline color and card colors
implemented fetching crypto data from public API (untested)
2024-12-15 23:23:00 +04:00

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(),
);