Options.fromJson constructor

Options.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Options.fromJson(Map<String, dynamic> json) {
  return Options(
    atime: (json['Atime'] as String?)?.toAtime(),
    bytesPerSecond: json['BytesPerSecond'] as int?,
    gid: (json['Gid'] as String?)?.toGid(),
    logLevel: (json['LogLevel'] as String?)?.toLogLevel(),
    mtime: (json['Mtime'] as String?)?.toMtime(),
    overwriteMode: (json['OverwriteMode'] as String?)?.toOverwriteMode(),
    posixPermissions:
        (json['PosixPermissions'] as String?)?.toPosixPermissions(),
    preserveDeletedFiles:
        (json['PreserveDeletedFiles'] as String?)?.toPreserveDeletedFiles(),
    preserveDevices:
        (json['PreserveDevices'] as String?)?.toPreserveDevices(),
    taskQueueing: (json['TaskQueueing'] as String?)?.toTaskQueueing(),
    transferMode: (json['TransferMode'] as String?)?.toTransferMode(),
    uid: (json['Uid'] as String?)?.toUid(),
    verifyMode: (json['VerifyMode'] as String?)?.toVerifyMode(),
  );
}