newsfeed_comment_publish_entity.dart 709 B

1234567891011121314151617181920212223
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/newsfeed_comment_publish_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/newsfeed_comment_publish_entity.g.dart';
  5. @JsonSerializable()
  6. class NewsfeedCommentPublishEntity {
  7. int? id;
  8. String? content;
  9. @JSONField(name: "to_user_id")
  10. int? toUserId;
  11. NewsfeedCommentPublishEntity();
  12. factory NewsfeedCommentPublishEntity.fromJson(Map<String, dynamic> json) => $NewsfeedCommentPublishEntityFromJson(json);
  13. Map<String, dynamic> toJson() => $NewsfeedCommentPublishEntityToJson(this);
  14. @override
  15. String toString() {
  16. return jsonEncode(this);
  17. }
  18. }