AuthenticationCodeInfo.fromJson constructor

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

Parse from a json

Implementation

factory AuthenticationCodeInfo.fromJson(Map<String, dynamic> json) => AuthenticationCodeInfo(
  phoneNumber: json['phone_number'],
  type: AuthenticationCodeType.fromJson(json['type']),
  nextType: json['next_type'] == null ? null : AuthenticationCodeType.fromJson(json['next_type']),
  timeout: json['timeout'],
  extra: json['@extra'],
  clientId: json['@client_id'],
);