Ancestor.fromJson constructor

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

Implementation

factory Ancestor.fromJson(Map<String, Object?> json) {
  return Ancestor(
    id: json[r'id'] as String?,
    type: json[r'type'] as String?,
  );
}