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 (content != null) 'content': content!,
      if (createdTime != null)
        'createdTime': createdTime!.toUtc().toIso8601String(),
      if (deleted != null) 'deleted': deleted!,
      if (htmlContent != null) 'htmlContent': htmlContent!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (modifiedTime != null)
        'modifiedTime': modifiedTime!.toUtc().toIso8601String(),
      if (quotedFileContent != null) 'quotedFileContent': quotedFileContent!,
      if (replies != null) 'replies': replies!,
      if (resolved != null) 'resolved': resolved!,
    };