rewards_home_test_entity.dart 647 B

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