import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/activity_pos.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/activity_pos.g.dart'; @JsonSerializable() class ActivityPos { bool? enabled = false; String? code = ''; String? showImage = ''; int? jumpType = 0; String? jumpUrl = ''; ActivityPos(); factory ActivityPos.fromJson(Map json) => $ActivityPosFromJson(json); Map toJson() => $ActivityPosToJson(this); @override String toString() { return jsonEncode(this); } }