fromJson static method
Implementation
static ResendCodeReason? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case ResendCodeReasonUserRequest.constructor:
return ResendCodeReasonUserRequest.fromJson(json);
case ResendCodeReasonVerificationFailed.constructor:
return ResendCodeReasonVerificationFailed.fromJson(json);
default:
return null;
}
}