PIbd-32_Shabunov_O.A._Mobil.../lib/data/dtos/search_coins_dto.dart
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
539 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'search_coins_dto.g.dart';
@JsonSerializable(createToJson: false)
class SearchCoinsDto {
final List<SearchCoinDto>? coins;
const SearchCoinsDto({this.coins});
factory SearchCoinsDto.fromJson(Map<String, dynamic> json) => _$SearchCoinsDtoFromJson(json);
}
@JsonSerializable(createToJson: false)
class SearchCoinDto {
final String? id;
const SearchCoinDto({this.id});
factory SearchCoinDto.fromJson(Map<String, dynamic> json) => _$SearchCoinDtoFromJson(json);
}