PhotoSize constructor

const PhotoSize({
  1. @JsonKey(name: 'file_id') required String fileId,
  2. @JsonKey(name: 'file_unique_id') required String fileUniqueId,
  3. @JsonKey(name: 'width') required int width,
  4. @JsonKey(name: 'height') required int height,
  5. @JsonKey(name: 'file_size') int? fileSize,
})

Constructs a PhotoSize object

Implementation

const factory PhotoSize({
  /// Identifier for this file, which can be used to download or reuse the
  /// file
  @JsonKey(name: 'file_id') required String fileId,

  /// Unique identifier for this file, which is supposed to be the same over
  /// time and for different bots. Can't be used to download or reuse the
  /// file.
  @JsonKey(name: 'file_unique_id') required String fileUniqueId,

  /// Photo width
  @JsonKey(name: 'width') required int width,

  /// Photo height
  @JsonKey(name: 'height') required int height,

  /// Optional. File size in bytes
  @JsonKey(name: 'file_size') int? fileSize,
}) = _PhotoSize;