toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (author != null) 'author': author!,
      if (content != null) 'content': content!,
      if (createdDate != null)
        'createdDate': createdDate!.toUtc().toIso8601String(),
      if (deleted != null) 'deleted': deleted!,
      if (htmlContent != null) 'htmlContent': htmlContent!,
      if (kind != null) 'kind': kind!,
      if (modifiedDate != null)
        'modifiedDate': modifiedDate!.toUtc().toIso8601String(),
      if (replyId != null) 'replyId': replyId!,
      if (verb != null) 'verb': verb!,
    };