Change.fromJson constructor

Change.fromJson(
  1. Map json_
)

Implementation

Change.fromJson(core.Map json_)
    : this(
        changeType: json_.containsKey('changeType')
            ? json_['changeType'] as core.String
            : null,
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : 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,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        modificationDate: json_.containsKey('modificationDate')
            ? core.DateTime.parse(json_['modificationDate'] as core.String)
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : 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,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );