SitfisCache class
Modelo para cache de protocolos do SITFIS
Constructors
- SitfisCache({required String protocoloRelatorio, required DateTime dataExpiracao, String? etag, String? cacheControl})
- SitfisCache.fromHeaders({required String protocoloRelatorio, required String etag, required String cacheControl, required String expires})
-
factory
-
SitfisCache.fromJson(Map<
String, dynamic> json) -
factory
Properties
- cacheControl → String?
-
final
- dataExpiracao → DateTime
-
final
- etag → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpired → bool
-
Verifica se o cache expirou
no setter
- isValid → bool
-
Verifica se o cache ainda é válido
no setter
- protocoloRelatorio → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tempoRestante → Duration
-
Tempo restante até expirar
no setter
- tempoRestanteEmMs → int
-
Tempo restante em milissegundos
no setter
- tempoRestanteEmSegundos → int
-
Tempo restante em segundos
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited