toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (userId != null) {
    _json[r'user_id'] = userId;
  }
  if (postId != null) {
    _json[r'post_id'] = postId;
  }
  if (emojiName != null) {
    _json[r'emoji_name'] = emojiName;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  return _json;
}