decode static method

SharedAttachment decode(
  1. Object message
)

Implementation

static SharedAttachment decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return SharedAttachment(
    path: Uri.decodeFull(pigeonMap['path']! as String),
    type: SharedAttachmentType.values[pigeonMap['type']! as int],
  );
}