toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final desiredSize = this.desiredSize;
  final maxSize = this.maxSize;
  final minSize = this.minSize;
  return {
    if (desiredSize != null) 'desiredSize': desiredSize,
    if (maxSize != null) 'maxSize': maxSize,
    if (minSize != null) 'minSize': minSize,
  };
}