Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'getJsonValue', if (extra != null) '@extra': extra, 'json': json }; }