Change.fromJson constructor
Change.fromJson(
- Map json_
Implementation
Change.fromJson(core.Map json_)
: this(
changeType: json_['changeType'] as core.String?,
deleted: json_['deleted'] as core.bool?,
drive: json_.containsKey('drive')
? Drive.fromJson(
json_['drive'] as core.Map<core.String, core.dynamic>)
: null,
driveId: json_['driveId'] as core.String?,
file: json_.containsKey('file')
? File.fromJson(
json_['file'] as core.Map<core.String, core.dynamic>)
: null,
fileId: json_['fileId'] as core.String?,
id: json_['id'] as core.String?,
kind: json_['kind'] as core.String?,
modificationDate: json_.containsKey('modificationDate')
? core.DateTime.parse(json_['modificationDate'] as core.String)
: null,
selfLink: json_['selfLink'] as core.String?,
teamDrive: json_.containsKey('teamDrive')
? TeamDrive.fromJson(
json_['teamDrive'] as core.Map<core.String, core.dynamic>)
: null,
teamDriveId: json_['teamDriveId'] as core.String?,
type: json_['type'] as core.String?,
);