toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final atime = this.atime;
  final bytesPerSecond = this.bytesPerSecond;
  final gid = this.gid;
  final logLevel = this.logLevel;
  final mtime = this.mtime;
  final overwriteMode = this.overwriteMode;
  final posixPermissions = this.posixPermissions;
  final preserveDeletedFiles = this.preserveDeletedFiles;
  final preserveDevices = this.preserveDevices;
  final taskQueueing = this.taskQueueing;
  final transferMode = this.transferMode;
  final uid = this.uid;
  final verifyMode = this.verifyMode;
  return {
    if (atime != null) 'Atime': atime.toValue(),
    if (bytesPerSecond != null) 'BytesPerSecond': bytesPerSecond,
    if (gid != null) 'Gid': gid.toValue(),
    if (logLevel != null) 'LogLevel': logLevel.toValue(),
    if (mtime != null) 'Mtime': mtime.toValue(),
    if (overwriteMode != null) 'OverwriteMode': overwriteMode.toValue(),
    if (posixPermissions != null)
      'PosixPermissions': posixPermissions.toValue(),
    if (preserveDeletedFiles != null)
      'PreserveDeletedFiles': preserveDeletedFiles.toValue(),
    if (preserveDevices != null) 'PreserveDevices': preserveDevices.toValue(),
    if (taskQueueing != null) 'TaskQueueing': taskQueueing.toValue(),
    if (transferMode != null) 'TransferMode': transferMode.toValue(),
    if (uid != null) 'Uid': uid.toValue(),
    if (verifyMode != null) 'VerifyMode': verifyMode.toValue(),
  };
}