toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.defaultPin != null) {
    json[r'default_pin'] = this.defaultPin;
  } else {
    json[r'default_pin'] = null;
  }
  json[r'enabled'] = this.enabled;
  if (this.maxAttempts != null) {
    json[r'max_attempts'] = this.maxAttempts;
  } else {
    json[r'max_attempts'] = null;
  }
  if (this.requiredPinDigits != null) {
    json[r'required_pin_digits'] = this.requiredPinDigits;
  } else {
    json[r'required_pin_digits'] = null;
  }
  return json;
}