MiniProgramShareResult.fromJson constructor
Implementation
factory MiniProgramShareResult.fromJson(Map<String, dynamic> json) {
final chooserOpened = json['chooserOpened'];
if (chooserOpened is! bool || !chooserOpened) {
throw const FormatException(
'Mini-program share result must confirm that the chooser opened.',
);
}
return const MiniProgramShareResult(chooserOpened: true);
}