TargetReference.fromJson constructor

TargetReference.fromJson(
  1. Map json_
)

Implementation

TargetReference.fromJson(core.Map json_)
    : this(
        drive: json_.containsKey('drive')
            ? DriveReference.fromJson(
                json_['drive'] as core.Map<core.String, core.dynamic>)
            : null,
        driveItem: json_.containsKey('driveItem')
            ? DriveItemReference.fromJson(
                json_['driveItem'] as core.Map<core.String, core.dynamic>)
            : null,
        teamDrive: json_.containsKey('teamDrive')
            ? TeamDriveReference.fromJson(
                json_['teamDrive'] as core.Map<core.String, core.dynamic>)
            : null,
      );