toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'title': needTitle,
    'size': sizeConstraint.toMap(),
    'duration': durationConstraint.toMap(),
  };
}