toJson method

  1. @override
Map<String, dynamic> toJson()
inherited

Converts this into JSON representation share information about the available fields. Mostly used to support Fields on Widgetbook Cloud.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'min': min,
    'max': max,
    'divisions': divisions,
  };
}