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(json['type'] as Map<String, dynamic>?)!,
    backgroundFill: BackgroundFill.fromJson(
        json['background_fill'] as Map<String, dynamic>?)!,
  );
}