ContentChildTypeAttachment.fromJson constructor

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

Implementation

factory ContentChildTypeAttachment.fromJson(Map<String, Object?> json) {
  return ContentChildTypeAttachment(
    value: json[r'value'] as bool? ?? false,
    links: GenericLinks.fromJson(
        json[r'_links'] as Map<String, Object?>? ?? const {}),
  );
}