CompensationFilter.fromJson constructor

CompensationFilter.fromJson(
  1. Map json_
)

Implementation

CompensationFilter.fromJson(core.Map json_)
    : this(
        includeJobsWithUnspecifiedCompensationRange:
            json_.containsKey('includeJobsWithUnspecifiedCompensationRange')
                ? json_['includeJobsWithUnspecifiedCompensationRange']
                    as core.bool
                : null,
        range: json_.containsKey('range')
            ? CompensationRange.fromJson(
                json_['range'] as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        units: json_.containsKey('units')
            ? (json_['units'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );