GenerateToken.fromMap constructor

GenerateToken.fromMap(
  1. 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']);
}