ResourcePath.fromJson constructor

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

Implementation

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