FinderStyle.fromJson constructor

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

Implementation

factory FinderStyle.fromJson(Map<String, dynamic> json) {
  String _type = json["_type"];
  switch (_type) {
    case "FinderCorneredStyle":
      return FinderCorneredStyle.fromJson(json);
    case "FinderStrokedStyle":
      return FinderStrokedStyle.fromJson(json);
    default:
      throw ArgumentError("Invalid polymorphic type: $_type");
  }
}