PageUpdateRequest.fromJson constructor

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

Implementation

factory PageUpdateRequest.fromJson(Map<String, Object?> json) {
  return PageUpdateRequest(
    id: json[r'id'] as String? ?? '',
    status:
        PageUpdateRequestStatus.fromValue(json[r'status'] as String? ?? ''),
    title: json[r'title'] as String? ?? '',
    spaceId: json[r'spaceId'],
    parentId: json[r'parentId'],
    body: json[r'body'],
    version: PageUpdateRequestVersion.fromJson(
        json[r'version'] as Map<String, Object?>? ?? const {}),
  );
}