fromJson static method

PluginChild fromJson(
  1. Map<String, Object?> json
)

Implementation

static PluginChild fromJson(Map<String, Object?> json) => PluginChild(
  id: json['id']! as String,
  label: json['label']! as String,
  status: Status.fromJson((json['status']! as Map).cast<String, Object?>()),
  badge: json['badge'] == null
      ? StatusBadge.none
      : StatusBadge.fromJson((json['badge']! as Map).cast<String, Object?>()),
);