config_bean.dart 416 B

12345678910111213141516171819
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'config_bean.g.dart';
  3. @JsonSerializable()
  4. class ConfigBean {
  5. @JsonKey(name: 'confCode')
  6. String confCode;
  7. @JsonKey(name: 'value')
  8. dynamic value;
  9. ConfigBean(this.confCode, this.value);
  10. factory ConfigBean.fromJson(Map<String, dynamic> json) =>
  11. _$ConfigBeanFromJson(json);
  12. Map<String, dynamic> toJson() => _$ConfigBeanToJson(this);
  13. }