MmUploadSession class

Constructors

MmUploadSession({String? id, MmUploadSessionTypeEnum? type, int? createAt, String? userId, String? channelId, String? filename, int? fileSize, int? fileOffset})
Returns a new MmUploadSession instance.

Properties

channelId String?
The ID of the channel to upload to.
getter/setter pair
createAt int?
The time the upload was created in milliseconds.
getter/setter pair
filename String?
The name of the file to upload.
getter/setter pair
fileOffset int?
The amount of data uploaded in bytes.
getter/setter pair
fileSize int?
The size of the file to upload in bytes.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String?
The unique identifier for the upload.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MmUploadSessionTypeEnum?
The type of the upload.
getter/setter pair
userId String?
The ID of the user performing the upload.
getter/setter pair

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) MmUploadSession?
Returns a new MmUploadSession instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<MmUploadSession>?
mapFromJson(dynamic json) Map<String, MmUploadSession>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<MmUploadSession>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.