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