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);
|
||
|
}
|