toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (dateFormat != null) {
buffer.writeAll(['"dateFormat":', jsonEncode(dateFormat), ','], '');
}
if (dateFormatter != null) {
buffer.writeAll(['"dateFormatter":', dateFormatter?.toJSON(), ','], '');
}
if (describeNull != null) {
buffer.writeAll(['"describeNull":', describeNull, ','], '');
}
if (descriptionFormat != null) {
buffer.writeAll(
['"descriptionFormat":', jsonEncode(descriptionFormat), ','], '');
}
if (descriptionFormatter != null) {
buffer.writeAll(
['"descriptionFormatter":', descriptionFormatter?.toJSON(), ','], '');
}
if (valueDecimals != null) {
buffer.writeAll(['"valueDecimals":', valueDecimals, ','], '');
}
if (valueDescriptionFormat != null) {
buffer.writeAll([
'"valueDescriptionFormat":',
jsonEncode(valueDescriptionFormat),
','
], '');
}
if (valuePrefix != null) {
buffer.writeAll(['"valuePrefix":', jsonEncode(valuePrefix), ','], '');
}
if (valueSuffix != null) {
buffer.writeAll(['"valueSuffix":', jsonEncode(valueSuffix), ','], '');
}
}