DebugMeta.fromJson constructor

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

Deserializes a DebugMeta from JSON Map.

Implementation

factory DebugMeta.fromJson(Map<String, dynamic> data) {
  final json = AccessAwareMap(data);
  final sdkInfoJson = json['sdk_info'];
  final debugImagesJson = json['images'] as List<dynamic>?;
  return DebugMeta(
    sdk: sdkInfoJson != null ? SdkInfo.fromJson(sdkInfoJson) : null,
    images: debugImagesJson
        ?.map((debugImageJson) =>
            DebugImage.fromJson(debugImageJson as Map<String, dynamic>))
        .toList(),
    unknown: json.notAccessed(),
  );
}