toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (supportsBiometric != null) {
    json['supports_biometric'] = supportsBiometric;
  }
  if (biometricTypes != null) {
    json['biometric_types'] = biometricTypes!.map((e) => e.value).toList();
  }
  return json;
}