Creates a specification from decoded JSON or YAML document object.
APIDocument.fromMap(Map<String, dynamic> map) { decode(KeyedArchive.unarchive(map, allowReferences: true)); }