CustomContentUpdateRequest.fromJson constructor

CustomContentUpdateRequest.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory CustomContentUpdateRequest.fromJson(Map<String, Object?> json) {
  return CustomContentUpdateRequest(
    id: json[r'id'] as String? ?? '',
    type: json[r'type'] as String? ?? '',
    status: CustomContentUpdateRequestStatus.fromValue(
        json[r'status'] as String? ?? ''),
    spaceId: json[r'spaceId'] as String?,
    pageId: json[r'pageId'] as String?,
    blogPostId: json[r'blogPostId'] as String?,
    customContentId: json[r'customContentId'] as String?,
    title: json[r'title'] as String? ?? '',
    body: json[r'body'],
    version: CustomContentUpdateRequestVersion.fromJson(
        json[r'version'] as Map<String, Object?>? ?? const {}),
  );
}