decode static method

StatusChangeResult decode(
  1. Object message
)

Implementation

static StatusChangeResult decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return StatusChangeResult(
    connectionId: pigeonMap['connectionId'] as String?,
    status: pigeonMap['status'] != null
        ? ConnectionStatus.values[pigeonMap['status']! as int]
        : null,
    errorMessage: pigeonMap['errorMessage'] as String?,
  );
}