Use to_ostruct method
Map data to the expected format