DebugMeta.fromJson constructor

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

Deserializes a DebugMeta from JSON Map.

Implementation

factory DebugMeta.fromJson(Map<String, dynamic> json) {
  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(),
  );
}