Map<String, dynamic> toJson() { var json = <String, dynamic>{}; json['type'] = getType().toShortString(); return json; }