channel_plan_list.dart 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import 'package:freezed_annotation/freezed_annotation.dart';
  2. import 'package:flutter/foundation.dart';
  3. part 'channel_plan_list.freezed.dart';
  4. part 'channel_plan_list.g.dart';
  5. @freezed
  6. abstract class ChannelPlanList with _$ChannelPlanList {
  7. const factory ChannelPlanList({List<ChannelPlan>? list}) = _ChannelPlanList;
  8. factory ChannelPlanList.fromJson(Map<String, Object?> json) =>
  9. _$ChannelPlanListFromJson(json);
  10. }
  11. @freezed
  12. abstract class ChannelPlan with _$ChannelPlan {
  13. const factory ChannelPlan({
  14. String? channelItemId,
  15. String? title,
  16. String? subTitle,
  17. String? introduce,
  18. double? orgPrice,
  19. double? price,
  20. String? tag,
  21. int? tagType,
  22. int? currency,
  23. bool? recommend,
  24. bool? isDefault,
  25. int? sort,
  26. int? deviceLimit,
  27. bool? isSubscribe,
  28. int? subscribeType,
  29. int? subscribePeriodValue,
  30. String? payoutType,
  31. String? payoutData,
  32. }) = _ChannelPlan;
  33. factory ChannelPlan.fromJson(Map<String, Object?> json) =>
  34. _$ChannelPlanFromJson(json);
  35. }