getMetadata method
Implementation
Future<Metadata> getMetadata() async {
try {
final uri = Uri.parse(this.url);
var data = await http.get(uri);
Map<String, dynamic>? json = jsonDecode(data.body);
return Metadata(data: json);
} catch (exception) {
if (kIsWeb) throw exception;
try {
var metadata = await readManUpFile();
return metadata;
} catch (e) {
throw ManUpException(exception.toString());
}
}
}