Results.fromJson constructor
Results.fromJson(
- Map<String, dynamic> json
)
Implementation
Results.fromJson(Map<String, dynamic> json) {
success = json['success'];
message = json['message'];
to = json['to'];
// The API spells it `authType`; older builds used `authtype`.
authtype = json['authType'] ?? json['authtype'];
maskId = json['maskId'];
createdTime = _asInt(json['createdTime']);
// The API spells it `expireTime`; older builds used `expiretime`.
expiretime = _asInt(json['expireTime'] ?? json['expiretime']);
attemptsRemaining = _asInt(json['attemptsRemaining']);
maxVerifyAttempts = _asInt(json['maxVerifyAttempts']);
}