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_['backgroundImageLink'] as core.String?,
      capabilities: json_.containsKey('capabilities')
          ? DriveCapabilities.fromJson(
              json_['capabilities'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      colorRgb: json_['colorRgb'] as core.String?,
      createdDate: json_.containsKey('createdDate')
          ? core.DateTime.parse(json_['createdDate'] as core.String)
          : null,
      hidden: json_['hidden'] as core.bool?,
      id: json_['id'] as core.String?,
      kind: json_['kind'] as core.String?,
      name: json_['name'] as core.String?,
      orgUnitId: json_['orgUnitId'] as core.String?,
      restrictions: json_.containsKey('restrictions')
          ? DriveRestrictions.fromJson(
              json_['restrictions'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      themeId: json_['themeId'] as core.String?,
    );