KernelCapabilities.fromJson constructor

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

Implementation

factory KernelCapabilities.fromJson(Map<String, dynamic> json) {
  return KernelCapabilities(
    add: (json['add'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    drop: (json['drop'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}