Change.fromJson constructor
Change.fromJson(
- Map json_
Implementation
Change.fromJson(core.Map json_)
: this(
changeType: json_['changeType'] as core.String?,
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?,
kind: json_['kind'] as core.String?,
removed: json_['removed'] as core.bool?,
teamDrive: json_.containsKey('teamDrive')
? TeamDrive.fromJson(
json_['teamDrive'] as core.Map<core.String, core.dynamic>)
: null,
teamDriveId: json_['teamDriveId'] as core.String?,
time: json_.containsKey('time')
? core.DateTime.parse(json_['time'] as core.String)
: null,
type: json_['type'] as core.String?,
);