decode static method

LoginRequest decode(
  1. Object message
)

Implementation

static LoginRequest decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return LoginRequest(
    ip: pigeonMap['ip']! as String,
    port: pigeonMap['port']! as int,
    username: pigeonMap['username']! as String,
    password: pigeonMap['password']! as String,
    channelNo: pigeonMap['channelNo']! as int,
  );
}