expiresIn property
int?
get
expiresIn
Implementation
int? get expiresIn {
int? expIn;
if (isValid()) {
if (respMap.containsKey('expires_in')) {
try {
expIn = respMap['expires_in'] is String
? int.parse(respMap['expires_in'])
: respMap['expires_in'];
} on FormatException {
//Provide a fallback value if the expires_in parameter is not an integer...
expIn = 60;
//...But rethrow the exception!
rethrow;
}
}
}
return expIn;
}