toMap method

Map<String, dynamic> toMap()

Returns a Map representation of this DurationConstraint object, with keys corresponding to the property names.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'min': min.inMilliseconds,
    'max': max.inMilliseconds,
    'allowNullable': allowNullable,
  };
}