Serializes the class into a json object
Map<String, dynamic> toJson() => {'key': key, 'area': area.toJson()};