LoginResponse.fromMap constructor

LoginResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory LoginResponse.fromMap(Map<String, dynamic> map) {
  return LoginResponse(
    token: map['token'] as String,
  );
}