BlogPostUpdateRequest.fromJson constructor

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

Implementation

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