pay_item_bean.dart 666 B

12345678910111213141516171819202122232425262728293031
  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. PayItemBean copyWith() {
  20. return PayItemBean(id, payMethod, payPlatform, title, isDefaultCheck);
  21. }
  22. }