toJson method

Map<String, dynamic> toJson()

Implementation

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