pay_item_bean.dart 559 B

123456789101112131415161718192021222324252627
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'pay_item_bean.g.dart';
  3. @JsonSerializable()
  4. class PayItemBean {
  5. @JsonKey(name: 'id')
  6. int id;
  7. @JsonKey(name: 'payMethod')
  8. int payMethod;
  9. @JsonKey(name: 'payPlatform')
  10. int payPlatform;
  11. @JsonKey(name: 'title')
  12. String title;
  13. @JsonKey(name: 'isDefaultCheck')
  14. bool? isDefaultCheck;
  15. PayItemBean(this.id, this.payMethod, this.payPlatform, this.title,
  16. this.isDefaultCheck);
  17. factory PayItemBean.fromJson(Map<String, dynamic> json) =>
  18. _$PayItemBeanFromJson(json);
  19. }