decode static method

SearchResponse decode(
  1. Object message
)

Implementation

static SearchResponse decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return SearchResponse(
    status: pigeonMap['status']! as String,
    errorMessage: pigeonMap['errorMessage'] as String?,
    matchList: (pigeonMap['matchList'] as List<Object?>?)?.cast<MatchItem?>(),
  );
}