Enable2faRequest.fromJSON constructor

Enable2faRequest.fromJSON(
  1. Map<String, dynamic> data
)

Implementation

factory Enable2faRequest.fromJSON(Map<String, dynamic> data) {
	return Enable2faRequest(
		(data["secret"] as String),
		(data["otpLength"] as int)
	);
}