mirrored_repositories/FlutterCryptoFreebie/lib/models/markets

import 'package:freezed_annotation/freezed_annotation.dart';

import '../../allowance/allowance.dart';
import '../pair/pair.dart';
part 'market_response.g.dart';
part 'market_response.freezed.dart';

@freezed
abstract class MarketResponse with _$MarketResponse {
  const factory MarketResponse(
      {required List<Pair> result,
      required Allowance allowance}) = _MarketResponse;
  factory MarketResponse.fromJson(Map<String, dynamic> json) =>
      _$MarketResponseFromJson(json);
}
