toJson method

Map<String, dynamic> toJson()

Converts this RoomDimensions to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'length': length,
    'width': width,
    'height': height,
  };
}