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,
    manifest:
        WebAppManifest.fromJson(json['manifest'] as Map<String, dynamic>),
  );
}