mirrored_repositories/FlutterCryptoFreebie/lib/models/pair

import 'package:freezed_annotation/freezed_annotation.dart';

import '../price/price.dart';


part 'pair_summary.freezed.dart';
part 'pair_summary.g.dart';

@freezed
abstract class PairSummary with _$PairSummary {
  const factory PairSummary({
    required Price price,
    required double volume,
    required double volumeQuote,
  }) = _PairSummary;

  factory PairSummary.fromJson(Map<String, dynamic> json) =>
      _$PairSummaryFromJson(json);
}
