GetAppManifestResult.fromJson constructor

GetAppManifestResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetAppManifestResult.fromJson(Map<String, dynamic> json) {
  return GetAppManifestResult(
    url: json['url'] as String,
    errors: (json['errors'] as List)
        .map((e) => AppManifestError.fromJson(e as Map<String, dynamic>))
        .toList(),
    data: json.containsKey('data') ? json['data'] as String : null,
    parsed: json.containsKey('parsed')
        ? AppManifestParsedProperties.fromJson(
            json['parsed'] as Map<String, dynamic>)
        : null,
  );
}