PIbd-32_Shabunov_O.A._Mobil.../lib/data/dtos/search_coins_dto.dart

22 lines
539 B
Dart
Raw Normal View History

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