AttackExposure.fromJson constructor

AttackExposure.fromJson(
  1. Map json_
)

Implementation

AttackExposure.fromJson(core.Map json_)
    : this(
        attackExposureResult: json_.containsKey('attackExposureResult')
            ? json_['attackExposureResult'] as core.String
            : null,
        exposedHighValueResourcesCount:
            json_.containsKey('exposedHighValueResourcesCount')
                ? json_['exposedHighValueResourcesCount'] as core.int
                : null,
        exposedLowValueResourcesCount:
            json_.containsKey('exposedLowValueResourcesCount')
                ? json_['exposedLowValueResourcesCount'] as core.int
                : null,
        exposedMediumValueResourcesCount:
            json_.containsKey('exposedMediumValueResourcesCount')
                ? json_['exposedMediumValueResourcesCount'] as core.int
                : null,
        latestCalculationTime: json_.containsKey('latestCalculationTime')
            ? json_['latestCalculationTime'] as core.String
            : null,
        score: json_.containsKey('score')
            ? (json_['score'] as core.num).toDouble()
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );