NfseParser class

A classe NfseParser converte o XML de uma NFSe (Nota Fiscal de Serviços Eletrônica) Nacional em um objeto Nfse.

O XML é normalizado por XmlMap (xml2json, formato Parker com atributos) — o mesmo pipeline do DanfeParser — e o Map resultante é entregue a Nfse.fromMap.

A classe é implementada com um construtor privado para garantir que não possa ser instanciada, sendo usada apenas para acesso aos métodos estáticos.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

extractBasicInfo(String xmlString) → Map<String, String?>
Extrai informações resumidas da NFSe.
isNfseNacional(String xml) → bool
Verifica se um XML é uma NFSe Nacional.
readFromString(String xml) → Nfse?
Converte um XML de NFSe Nacional em um objeto Nfse.