FileDataEndPoint class

A DataEndPoint that stores measurements as JSON files on the phone.

Used by the FileDataManager. Files can be zipped and encrypted.

Inheritance
Annotations
  • @JsonSerializable.new(includeIfNull: false, explicitToJson: true)

Constructors

FileDataEndPoint({String dataFormat = NameSpace.CARP, int bufferSize = 500 * 1000, bool zip = true, bool encrypt = false, String? publicKey})
Creates a FileDataEndPoint of type DataEndPointTypes.FILE.
FileDataEndPoint.fromJson(Map<String, dynamic> json)
factory

Properties

$type ↔ String?
The type name written to __type in JSON; set to jsonType on creation.
getter/setter pairinherited
bufferSize ↔ int
The buffer size of the raw JSON file in bytes.
getter/setter pair
dataFormat ↔ String
The preferred format of the data to be uploaded according to NameSpace. Default using the NameSpace.CARP.
getter/setter pairinherited
encrypt ↔ bool
Whether to encrypt the data before storing it. Default is false.
getter/setter pair
fromJsonFunction → Function
The generated function that converts a JSON map to an object of this type.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
jsonType → String
The __type used for JSON serialization of this class.
no setterinherited
publicKey ↔ String?
The public key for RSA encryption of the data, used if encrypt is true.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ String
The type of endpoint as enumerated in DataEndPointTypes.
getter/setter pairinherited
zip ↔ bool
Whether to compress (zip) the data before storing it in a file. Default is true.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a JSON map of this object, including the __type property.
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited