toJson method
Convert current to Map
Implementation
List<Map<String, Object>> toJson() {
return <Map<String, Object>>[
for (final option in options)
if (!option.canIgnore)
{'type': option.key, 'value': option.transferValue},
];
}