toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (changeType != null) 'changeType': changeType!,
  if (deleted != null) 'deleted': deleted!,
  if (drive != null) 'drive': drive!,
  if (driveId != null) 'driveId': driveId!,
  if (file != null) 'file': file!,
  if (fileId != null) 'fileId': fileId!,
  if (id != null) 'id': id!,
  if (kind != null) 'kind': kind!,
  if (modificationDate != null)
    'modificationDate': modificationDate!.toUtc().toIso8601String(),
  if (selfLink != null) 'selfLink': selfLink!,
  if (teamDrive != null) 'teamDrive': teamDrive!,
  if (teamDriveId != null) 'teamDriveId': teamDriveId!,
  if (type != null) 'type': type!,
};