Last updated:
0 purchases
hal
A Dart library to handle Hypertext Application Language (HAL) resources.
Features #
Easy handling of HAL Resources
Getting started #
Usage #
final Map<String, dynamic> jsonExample = {
"_links": {
"self": {"href": "/event/1", "title": "Evento"},
"describedby": {"href": "/schemas/event"},
"collection": {"href": "/event", "title": "Todos os Eventos"},
"external": {
"href":
"https://delage.com.br/blog/calendario-eventos-de-logistica-2021/",
"title": "Mais detalhes",
"type": "text/html"
},
"plan": {"href": "/association/1/plan", "title": "Associe-se já!"}
},
"_embedded": {
"plan": [
{"title": "Premium", "id": 1, "preco": 37.50}
]
},
"id": 1,
"title": "Masterclass Logística Internacional",
"description": "Imperdível!",
"url_for_details":
"https://delage.com.br/blog/calendario-eventos-de-logistica-2021/"
};
final resource =
HypertextApplicationLanguageResource.fromMap(jsonExample);
copied to clipboard
Additional information #
Hypertext Application Language (HAL) specification is described in detail
at https://datatracker.ietf.org/doc/html/draft-kelly-json-hal
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.