toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (action != null) 'action': action!,
      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(),
    };