decode static method
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?,
);
}