Friends like I could Convert a Json into Class:
My Class is the created class to which I must adapt the Json that returns authorizationResponse.getResponse ()
miClase token = gson.fromJson(autorizationResponse.getResponse(),miClase.class);
This is the Json that returns me and I must convert it:
{"header":{
"ecoreTransactionUUID":"7685d60e-0711-45dc-ab02-673761c67666",
"ecoreTransactionDate":1542377567019,"millis":570
},
"order":{"tokenId":"386F86BDE61447A1AF86BDE614D7A1D0",
"purchaseNumber":"84335","productId":"Whatsapp",
"amount":210.0,"currency":"PEN",
"authorizedAmount":210.0,
"authorizationCode":"090326",
"actionCode":"000",
"traceNumber":"15446",
"transactionDate":"181116091246",
"transactionId":"991183200855688"
},
"dataMap":{"CURRENCY":"0604",
"TRANSACTION_DATE":"181116091246",
"TERMINAL":"00000001",
"ACTION_CODE":"000",
"TRACE_NUMBER":"15446",
"ECI_DESCRIPTION":"Transaccion no autenticada",
"ECI":"07",
"CARD":"491914******9067",
"MERCHANT":"341198210",
"STATUS":"Authorized",
"INSTALLMENTS_INFO":"24000000000",
"ADQUIRENTE":"570002",
"ACTION_DESCRIPTION":"Aprobado y completado con exito",
"QUOTA_AMOUNT":"0.00",
"ID_UNICO":"991183200855688",
"AMOUNT":"210.00",
"PROCESS_CODE":"000000",
"QUOTA_NUMBER":"24",
"TRANSACTION_ID":"991183200855688",
"AUTHORIZATION_CODE":"090326",
"QUOTA_DEFERRED":"0"
}
}
How could the friends class do it?