GenerateToken.fromMap constructor
GenerateToken.fromMap(
- dynamic map
Implementation
factory GenerateToken.fromMap(dynamic map) {
if (map == null) {
throw ArgumentError('The type of GenerateToken map is null');
}
return GenerateToken(token: map['message']);
}