CheckStickerSetNameResult.fromJson constructor

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

Implementation

factory CheckStickerSetNameResult.fromJson(Map<String, dynamic> json) {
  switch (json["@type"]) {
    case CheckStickerSetNameResultOk.CONSTRUCTOR:
      return CheckStickerSetNameResultOk.fromJson(json);
    case CheckStickerSetNameResultNameInvalid.CONSTRUCTOR:
      return CheckStickerSetNameResultNameInvalid.fromJson(json);
    case CheckStickerSetNameResultNameOccupied.CONSTRUCTOR:
      return CheckStickerSetNameResultNameOccupied.fromJson(json);
    default:
      return const CheckStickerSetNameResult();
  }
}