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