toJson method

Json toJson()

Implementation

Json toJson() => {'position': writeDouble(position), 'color': color.toJson()};