toJSON method

Map<String, dynamic> toJSON()

Converts the value to a JSON object.

Implementation

Map<String, dynamic> toJSON() => {name: toJSONValue()};