ContentChildren.fromJson constructor

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

Implementation

factory ContentChildren.fromJson(Map<String, Object?> json) {
  return ContentChildren(
    attachment: json[r'attachment'] != null
        ? ContentArray.fromJson(json[r'attachment']! as Map<String, Object?>)
        : null,
    comment: json[r'comment'] != null
        ? ContentArray.fromJson(json[r'comment']! as Map<String, Object?>)
        : null,
    page: json[r'page'] != null
        ? ContentArray.fromJson(json[r'page']! as Map<String, Object?>)
        : null,
    expandable: json[r'_expandable'] != null
        ? ContentChildrenExpandable.fromJson(
            json[r'_expandable']! as Map<String, Object?>)
        : null,
    links: json[r'_links'] != null
        ? GenericLinks.fromJson(json[r'_links']! as Map<String, Object?>)
        : null,
  );
}