toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = id;
  if (author != null) {
    json[r'author'] = author;
  }
  if (created != null) {
    json[r'created'] = created;
  }
  if (modified != null) {
    json[r'modified'] = modified;
  }
  if (text != null) {
    json[r'text'] = text;
  }
  if (location != null) {
    json[r'location'] = location;
  }
  return json;
}