PageCreateRequest.fromJson constructor

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

Implementation

factory PageCreateRequest.fromJson(Map<String, Object?> json) {
  return PageCreateRequest(
    spaceId: json[r'spaceId'] as String? ?? '',
    status: json[r'status'] != null
        ? PageCreateRequestStatus.fromValue(json[r'status']! as String)
        : null,
    title: json[r'title'] as String?,
    parentId: json[r'parentId'] as String?,
    body: json[r'body'],
  );
}