ApprovalRequest.fromJson constructor

ApprovalRequest.fromJson(
  1. Map json_
)

Implementation

ApprovalRequest.fromJson(core.Map json_)
    : this(
        approve: json_.containsKey('approve')
            ? ApproveDecision.fromJson(
                json_['approve'] as core.Map<core.String, core.dynamic>)
            : null,
        dismiss: json_.containsKey('dismiss')
            ? DismissDecision.fromJson(
                json_['dismiss'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        requestTime: json_.containsKey('requestTime')
            ? json_['requestTime'] as core.String
            : null,
        requestedDuration: json_.containsKey('requestedDuration')
            ? json_['requestedDuration'] as core.String
            : null,
        requestedExpiration: json_.containsKey('requestedExpiration')
            ? json_['requestedExpiration'] as core.String
            : null,
        requestedLocations: json_.containsKey('requestedLocations')
            ? AccessLocations.fromJson(json_['requestedLocations']
                as core.Map<core.String, core.dynamic>)
            : null,
        requestedReason: json_.containsKey('requestedReason')
            ? AccessReason.fromJson(json_['requestedReason']
                as core.Map<core.String, core.dynamic>)
            : null,
        requestedResourceName: json_.containsKey('requestedResourceName')
            ? json_['requestedResourceName'] as core.String
            : null,
        requestedResourceProperties: json_
                .containsKey('requestedResourceProperties')
            ? ResourceProperties.fromJson(json_['requestedResourceProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
      );