toMap method

Map<String, dynamic> toMap()

Serializes the PIX object to a MAP object.

The toMap method returns a Map<String, dynamic> object representing the PIX object that will be used to create a new instance of PIX.

The keys of the Map must match the names of the parameters of the PIX constructor.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'endToEndId': endToEndId,
    'txid': txid,
    'valor': valor,
    'horario': horario,
    'nomePagador': nomePagador,
    'pagador': pagador.toMap(),
    'devolucoes': devolucoes,
    'infoPagador': infoPagador,
  };
}