OptimizationActivity.fromJson constructor

OptimizationActivity.fromJson(
  1. Map json_
)

Implementation

OptimizationActivity.fromJson(core.Map json_)
    : this(
        floodlightActivityId: json_.containsKey('floodlightActivityId')
            ? json_['floodlightActivityId'] as core.String
            : null,
        floodlightActivityIdDimensionValue:
            json_.containsKey('floodlightActivityIdDimensionValue')
                ? DimensionValue.fromJson(
                    json_['floodlightActivityIdDimensionValue']
                        as core.Map<core.String, core.dynamic>)
                : null,
        weight:
            json_.containsKey('weight') ? json_['weight'] as core.int : null,
      );