toJson method
Returns a JSON representation of this.
Implementation
@override
Map<String, Object?> toJson() => {
'runtimeType': 'ZipOptions',
'compression-method': compressionMethod.toJson(),
'compression-level': (compressionLevel == null
? const None().toJson()
: Option.fromValue(compressionLevel).toJson()),
'last-modified-time': (lastModifiedTime == null
? const None().toJson()
: Option.fromValue(lastModifiedTime)
.toJson((some) => some.toString())),
'permissions': (permissions == null
? const None().toJson()
: Option.fromValue(permissions).toJson()),
'comment': (comment == null
? const None().toJson()
: Option.fromValue(comment).toJson((some) => some.toJson())),
};