toJson method

Map<String, dynamic> toJson()

Serializes the class into a json object

Implementation

Map<String, dynamic> toJson() => {'key': key, 'area': area.toJson()};