AuthenticationCodeInfo.fromJson constructor

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

Parse from a json

Implementation

AuthenticationCodeInfo.fromJson(Map<String, dynamic> json) {
  this.phoneNumber = json['phone_number'];
  this.type =
      AuthenticationCodeType.fromJson(json['type'] ?? <String, dynamic>{});
  this.nextType = AuthenticationCodeType.fromJson(
      json['next_type'] ?? <String, dynamic>{});
  this.timeout = json['timeout'];
  this.extra = json['@extra'];
}