Identifier.fromJson constructor

Identifier.fromJson(
  1. Map<String, Object?> map
)

Implementation

factory Identifier.fromJson(Map<String, Object?> map) => Identifier(
  name: map['name'] as String,
  id: map['id'] as String,
  uri: Uri.file(map['uri'] as String),
  nonConstant: map['nonConstant'] as bool,
  files: List<ResourceFile>.from(
    (map['files'] as List)
        .map((e) => e as Map<String, Object?>)
        .map(ResourceFile.fromJson),
  ),
);