import 'package:json_annotation/json_annotation.dart'; part 'bootstrap_response_topics.g.dart'; @JsonSerializable() class BootstrapResponseTopics { @JsonKey(name: 'to_server') late String toServer; @JsonKey(name: 'from_server') late String fromServer; BootstrapResponseTopics(); factory BootstrapResponseTopics.fromJson(Map json) => _$BootstrapResponseTopicsFromJson(json); Map toJson() => _$BootstrapResponseTopicsToJson(this); }