SubmitResponse.fromMap constructor

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

Implementation

factory SubmitResponse.fromMap(Map<String, dynamic> map) {
  return SubmitResponse(
    token: map['token'] ?? '',
    isSuccess: map['isSuccess'] ?? false,
    msg: map['msg'] ?? '',
  );
}