ContentChildType.fromJson constructor

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

Implementation

factory ContentChildType.fromJson(Map<String, Object?> json) {
  return ContentChildType(
    attachment: json[r'attachment'] != null
        ? ContentChildTypeAttachment.fromJson(
            json[r'attachment']! as Map<String, Object?>)
        : null,
    comment: json[r'comment'] != null
        ? ContentChildTypeComment.fromJson(
            json[r'comment']! as Map<String, Object?>)
        : null,
    page: json[r'page'] != null
        ? ContentChildTypePage.fromJson(
            json[r'page']! as Map<String, Object?>)
        : null,
    expandable: json[r'_expandable'] != null
        ? ContentChildTypeExpandable.fromJson(
            json[r'_expandable']! as Map<String, Object?>)
        : null,
  );
}