fromJson static method

InputSticker? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static InputSticker? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return InputSticker(
    sticker: InputFile.fromJson(json['sticker'] as Map<String, dynamic>?)!,
    thumbnail:
        InputThumbnail.fromJson(json['thumbnail'] as Map<String, dynamic>?),
    width: (json['width'] as int?) ?? 0,
    height: (json['height'] as int?) ?? 0,
  );
}