olshab
a676d454ca
changed Cupertino search bar to Material UI 3 changed baseline color and card colors implemented fetching crypto data from public API (untested)
22 lines
539 B
Dart
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);
|
|
}
|