import 'package:json_annotation/json_annotation.dart'; part 'notifyRegisterParams.g.dart'; @JsonSerializable() class NotifyRegisterParams { String username; String password; String fcmToken; NotifyRegisterParams({ required this.username, required this.password, required this.fcmToken }); factory NotifyRegisterParams.fromJson(Map json) => _$NotifyRegisterParamsFromJson(json); Map toJson() => _$NotifyRegisterParamsToJson(this); }