import 'package:teso/Classes/API%20Clasess/TesoUserDetail.dart'; import 'package:teso/Classes/API%20Clasess/UserAuth.dart'; class Registrar { UserAuth authentication; TesoUserDetail user; String referral; Registrar({ this.authentication, this.user, this.referral, }); Map toJson() { final Map data = Map(); data['user'] = this.user; data['authentication'] = this.authentication; data['referral'] = this.referral; return data; } @override String toString() { return '{"user": "$user", "authentication": "$authentication"}'; } }