Holiday class

Informações sobre feriados nacionais.

Constructors

Holiday({String? date, String? type, String? name, Map<String, dynamic>? errors})
Informações disponíveis.
Holiday.fromJson(Map<String, dynamic> json)
Obter os dados por um json.
factory

Properties

date String?
Data do feriado.
final
errors Map<String, dynamic>?
Erros encontrados na requisição.
final
hashCode int
The hash code for this object.
no setterinherited
name String?
Nome do feriado.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
Tipo do feriado. Exemplo: national
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Transformar os dados em um json.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

listHolidays({required int year}) Future<List<Holiday>>
Lista os feriados nacionais de determinado ano.