import 'package:json_annotation/json_annotation.dart'; part 'app_update.g.dart'; @JsonSerializable() class AppUpdate { @JsonKey(name: 'force_update') final bool? forceUpdate; @JsonKey(name: 'update_available') final bool? updateAvailable; const AppUpdate({this.forceUpdate, this.updateAvailable}); factory AppUpdate.fromJson(Map json) => _$AppUpdateFromJson(json); Map toJson() => _$AppUpdateToJson(this); }