A necessary factory constructor for creating a new PolyTransaction instance
from a map. Pass the map to the generated _$PolyTransactionFromJson() constructor.
The constructor is named after the source class, in this case, PolyTransaction.
toJson is the convention for a class to declare support for serialization
to JSON. The implementation simply calls the private, generated
helper method _$PolyTransactionToJson.