import 'package:todo_list/json/color_bean.dart'; export 'package:todo_list/json/color_bean.dart'; class ThemeBean { String themeName; ColorBean colorBean; String themeType; ThemeBean({this.themeName, this.colorBean, this.themeType}); static ThemeBean fromMap(Map map) { ThemeBean bean = new ThemeBean(); bean.themeName = map['themeName']; bean.colorBean = ColorBean.fromMap(map['colorBean']); bean.themeType = map['themeType']; return bean; } Map toMap() { return { 'themeName': themeName, 'colorBean': colorBean.toMap(), 'themeType': themeType }; } }