fromJson static method
Inherited by: InviteGroupCallParticipantResultSuccess InviteGroupCallParticipantResultUserAlreadyParticipant InviteGroupCallParticipantResultUserPrivacyRestricted InviteGroupCallParticipantResultUserWasBanned
Implementation
static InviteGroupCallParticipantResult? fromJson(
Map<String, dynamic>? json,
) {
if (json == null) {
return null;
}
switch (json['@type']) {
case InviteGroupCallParticipantResultSuccess.constructor:
return InviteGroupCallParticipantResultSuccess.fromJson(json);
case InviteGroupCallParticipantResultUserAlreadyParticipant.constructor:
return InviteGroupCallParticipantResultUserAlreadyParticipant.fromJson(
json,
);
case InviteGroupCallParticipantResultUserPrivacyRestricted.constructor:
return InviteGroupCallParticipantResultUserPrivacyRestricted.fromJson(
json,
);
case InviteGroupCallParticipantResultUserWasBanned.constructor:
return InviteGroupCallParticipantResultUserWasBanned.fromJson(json);
default:
return null;
}
}