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