toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (publishedTime != null) {
    _json[r'published_time'] = publishedTime;
  }
  if (modifiedTime != null) {
    _json[r'modified_time'] = modifiedTime;
  }
  if (expirationTime != null) {
    _json[r'expiration_time'] = expirationTime;
  }
  if (section != null) {
    _json[r'section'] = section;
  }
  _json[r'tags'] = tags;
  _json[r'authors'] = authors;
  return _json;
}