blob: ebb665a9124546b51f83cfa681f894f981f486e3 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import 'dart:convert';
// Slide represents an independent slide without ties to a specific deck.
class Slide {
List<int> _image;
List<int> get image => _image;
Slide(this._image) {}
Slide.fromJson(String json) {
Map map = JSON.decode(json);
_image = map['image'];
}
String toJson() {
Map map = new Map();
map['image'] = image;
return JSON.encode(map);
}
// TODO(aghassemi): Override == and hash
}