CheckStickerSetNameResult.fromJson constructor
a CheckStickerSetNameResult return type can be :
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();
}
}