MmFileInfo class

Constructors

MmFileInfo({String? id, String? userId, String? postId, int? createAt, int? updateAt, int? deleteAt, String? name, String? extension_, int? size, String? mimeType, int? width, int? height, bool? hasPreviewImage})
Returns a new MmFileInfo instance.

Properties

createAt int?
The time in milliseconds a file was created
getter/setter pair
deleteAt int?
The time in milliseconds a file was deleted
getter/setter pair
extension_ String?
The extension at the end of the file name
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hasPreviewImage bool?
If this file is an image, whether or not it has a preview-sized version
getter/setter pair
height int?
If this file is an image, the height of the file
getter/setter pair
id String?
The unique identifier for this file
getter/setter pair
mimeType String?
The MIME type of the file
getter/setter pair
name String?
The name of the file
getter/setter pair
postId String?
If this file is attached to a post, the ID of that post
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The size of the file in bytes
getter/setter pair
updateAt int?
The time in milliseconds a file was last updated
getter/setter pair
userId String?
The ID of the user that uploaded this file
getter/setter pair
width int?
If this file is an image, the width of the file
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) MmFileInfo?
Returns a new MmFileInfo instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<MmFileInfo>?
mapFromJson(dynamic json) Map<String, MmFileInfo>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<MmFileInfo>>

Constants

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