Serializes to the flags object.
flags
Map<String, dynamic> toJson() => <String, dynamic>{'history': history};