toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final roomType = this.roomType;
  return {
    'children_state': childrenState.map((v) => v.toJson()).toList(),
    if (roomType != null) 'room_type': roomType,
  };
}