ChatPhoto class abstract

This object represents a chat photo.

Annotations
  • @freezed

Constructors

ChatPhoto.new({@JsonKey(name: 'small_file_id') required String smallFileId, @JsonKey(name: 'small_file_unique_id') required String smallFileUniqueId, @JsonKey(name: 'big_file_id') required String bigFileId, @JsonKey(name: 'big_file_unique_id') required String bigFileUniqueId})
Creates a new ChatPhoto object.
const
factory
ChatPhoto.fromJson(Map<String, dynamic> json)
Creates a new ChatPhoto object from json.
factory

Properties

bigFileId String
File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
no setterinherited
bigFileUniqueId String
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
no setterinherited
copyWith → $ChatPhotoCopyWith<ChatPhoto>
Create a copy of ChatPhoto with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smallFileId String
File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
no setterinherited
smallFileUniqueId String
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
no setterinherited

Methods

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

Operators

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