ConnectionModel.fromMap constructor
Turns a Map
into a ConnectionModel
.
Implementation
factory ConnectionModel.fromMap(Map<String, dynamic> map) {
return ConnectionModel(
username: map['username'],
password: map['password'],
ip: map['ip'],
port: map['port'],
isConnected: map['isConnected'],
screenAmount: map['screenAmount'],
);
}