fromJson static method

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

Implementation

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

  return ChatPhotoSticker(
    type: ChatPhotoStickerType.fromJson(tdMapFromJson(json['type'])),
    backgroundFill: BackgroundFill.fromJson(
      tdMapFromJson(json['background_fill']),
    ),
  );
}