rewards_home_tx_entity.dart 652 B

123456789101112131415161718192021222324
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/rewards_home_tx_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/rewards_home_tx_entity.g.dart';
  5. @JsonSerializable()
  6. class RewardsHomeTxEntity {
  7. late double id;
  8. late String name = '';
  9. late List<dynamic> rewards = [];
  10. RewardsHomeTxEntity();
  11. factory RewardsHomeTxEntity.fromJson(Map<String, dynamic> json) =>
  12. $RewardsHomeTxEntityFromJson(json);
  13. Map<String, dynamic> toJson() => $RewardsHomeTxEntityToJson(this);
  14. @override
  15. String toString() {
  16. return jsonEncode(this);
  17. }
  18. }