Add mapping function for offer from JSON