PlatformChannelError.fromJson constructor Null safety

PlatformChannelError.fromJson(
  1. Map<String, dynamic> json
)

Alternate constructor that creates a PlatformChannelError from a json.

Params:

  • json: contains the source for instance creation.

Implementation

factory PlatformChannelError.fromJson(
  Map<String, dynamic> json,
) {
  return const PlatformChannelErrorConverter().fromJson(json);
}