toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (anchor != null) 'anchor': anchor!,
  if (author != null) 'author': author!,
  if (commentId != null) 'commentId': commentId!,
  if (content != null) 'content': content!,
  if (context != null) 'context': context!,
  if (createdDate != null)
    'createdDate': createdDate!.toUtc().toIso8601String(),
  if (deleted != null) 'deleted': deleted!,
  if (fileId != null) 'fileId': fileId!,
  if (fileTitle != null) 'fileTitle': fileTitle!,
  if (htmlContent != null) 'htmlContent': htmlContent!,
  if (kind != null) 'kind': kind!,
  if (modifiedDate != null)
    'modifiedDate': modifiedDate!.toUtc().toIso8601String(),
  if (replies != null) 'replies': replies!,
  if (selfLink != null) 'selfLink': selfLink!,
  if (status != null) 'status': status!,
};