Drive.fromJson constructor

Drive.fromJson(
  1. Map json_
)

Implementation

Drive.fromJson(core.Map json_)
    : this(
        backgroundImageFile: json_.containsKey('backgroundImageFile')
            ? DriveBackgroundImageFile.fromJson(json_['backgroundImageFile']
                as core.Map<core.String, core.dynamic>)
            : null,
        backgroundImageLink: json_.containsKey('backgroundImageLink')
            ? json_['backgroundImageLink'] as core.String
            : null,
        capabilities: json_.containsKey('capabilities')
            ? DriveCapabilities.fromJson(
                json_['capabilities'] as core.Map<core.String, core.dynamic>)
            : null,
        colorRgb: json_.containsKey('colorRgb')
            ? json_['colorRgb'] as core.String
            : null,
        createdTime: json_.containsKey('createdTime')
            ? core.DateTime.parse(json_['createdTime'] as core.String)
            : null,
        hidden:
            json_.containsKey('hidden') ? json_['hidden'] as core.bool : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        orgUnitId: json_.containsKey('orgUnitId')
            ? json_['orgUnitId'] as core.String
            : null,
        restrictions: json_.containsKey('restrictions')
            ? DriveRestrictions.fromJson(
                json_['restrictions'] as core.Map<core.String, core.dynamic>)
            : null,
        themeId: json_.containsKey('themeId')
            ? json_['themeId'] as core.String
            : null,
      );