The wire shape.
Json toJson() => compact({'id': id, 'name': name, 'size': size, 'type': type, 'url': url});