import 'package:json_annotation/json_annotation.dart'; part 'property_bean.g.dart'; /// @JsonSerializable(explicitToJson: true) class PropertyBean { String? title; String? consumeDetails; String? datePrompt; PropertyBean(this.title, this.consumeDetails, this.datePrompt); factory PropertyBean.fromJson(Map json) => _$PropertyBeanFromJson(json); Map toJson() => _$PropertyBeanToJson(this); }