ConnectionModel.fromMap constructor

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

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'],
  );
}