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