SdkVersion.fromJson constructor
Deserializes a SdkVersion from JSON Map.
Implementation
factory SdkVersion.fromJson(Map<String, dynamic> data) {
final json = AccessAwareMap(data);
final packagesJson = json['packages'] as List<dynamic>?;
final integrationsJson = json['integrations'] as List<dynamic>?;
return SdkVersion(
name: json['name'],
version: json['version'],
packages: packagesJson
?.map((e) => SentryPackage.fromJson(e as Map<String, dynamic>))
.toList(),
integrations: integrationsJson?.map((e) => e as String).toList(),
unknown: json.notAccessed(),
);
}