ScreenshotCluster.fromJson constructor

ScreenshotCluster.fromJson(
  1. Map json_
)

Implementation

ScreenshotCluster.fromJson(core.Map json_)
    : this(
        activity: json_.containsKey('activity')
            ? json_['activity'] as core.String
            : null,
        clusterId: json_.containsKey('clusterId')
            ? json_['clusterId'] as core.String
            : null,
        keyScreen: json_.containsKey('keyScreen')
            ? Screen.fromJson(
                json_['keyScreen'] as core.Map<core.String, core.dynamic>)
            : null,
        screens: json_.containsKey('screens')
            ? (json_['screens'] as core.List)
                .map((value) => Screen.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );