decode static method

ConnectionOptions decode(
  1. Object message
)

Implementation

static ConnectionOptions decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return ConnectionOptions(
    baseUrl: pigeonMap['baseUrl'] as String?,
    hubName: pigeonMap['hubName'] as String?,
    queryString: pigeonMap['queryString'] as String?,
    hubMethods: (pigeonMap['hubMethods'] as List<Object?>?)?.cast<String?>(),
    headers: (pigeonMap['headers'] as Map<Object?, Object?>?)
        ?.cast<String?, String?>(),
    transport: pigeonMap['transport'] != null
        ? Transport.values[pigeonMap['transport']! as int]
        : null,
  );
}