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<Screen>((value) => Screen.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );