Estou com dificuldades para pegar um registro dentro de um HashMap, ele vem da seguinte forma:
{
code=200,
data={
total=8500,
charge_id=148160,
custom_id=null,
notification_url=null,
created_at=2016-12-14 17:03:12,
payment={
banking_billet={
link=https://visualizacaosandbox.gerencianet.com.br/emissao/124475_3_LUAZE3/A4XB-124475-109213-MEHZE1,
expire_at=2018-12-14,
barcode=00000.00000 00000.000000 00000.000000 0 00000000000000
},
method=banking_billet,
created_at=2016-12-14 17:03:13
},
history=[{
created_at=2016-12-14 17:03:12,
message=Cobrança criada
},
{
created_at=2016-12-14 17:03:15,
message=Pagamento via boleto aguardando confirmação
},
{
created_at=2016-12-14 17:06:19,
message=Cliente visualizou esse boleto bancário
}],
items=[{
amount=1,
name=Inscrição,
value=8500
}],
status=waiting,
customer={
name=Hermes Oliveira,
cpf=[telefone removido],
phone_number=[telefone removido]
}
}
}
Preciso pegar o campo: “link”, porém se eu faço map.get(“link”) ele me retorna null …
