toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'passportSuitableElement',
    if (extra != null) '@extra': extra,
    'type': type,
    'is_selfie_required': is_selfie_required,
    'is_translation_required': is_translation_required,
    'is_native_name_required': is_native_name_required
  };
}