Parser function to convert a JSON map to a Dart object.
typedef FromJson<T> = T Function(Map<String, Object?>);