GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest.fromJson constructor

GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest.fromJson(
  1. Map json_
)

Implementation

GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest.fromJson(core.Map json_)
    : this(
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        requests: json_.containsKey('requests')
            ? (json_['requests'] as core.List)
                .map((value) =>
                    GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        useAdminAccess: json_.containsKey('useAdminAccess')
            ? json_['useAdminAccess'] as core.bool
            : null,
        view: json_.containsKey('view') ? json_['view'] as core.String : null,
        writeControl: json_.containsKey('writeControl')
            ? GoogleAppsDriveLabelsV2WriteControl.fromJson(
                json_['writeControl'] as core.Map<core.String, core.dynamic>)
            : null,
      );