SdkInfo.fromJson constructor

SdkInfo.fromJson(
  1. Map<String, dynamic> data
)

Deserializes a SdkInfo from JSON Map.

Implementation

factory SdkInfo.fromJson(Map<String, dynamic> data) {
  final json = AccessAwareMap(data);
  return SdkInfo(
    sdkName: json['sdk_name'],
    versionMajor: json['version_major'],
    versionMinor: json['version_minor'],
    versionPatchlevel: json['version_patchlevel'],
    unknown: json.notAccessed(),
  );
}