toMap method

Map<String, dynamic> toMap()

Method to convert Flag object to a map

Implementation

Map<String, dynamic> toMap() {
  return {
    'isEnabled': _isEnabled,
    'variables': variables.map((variable) => variable.toMap()).toList(),
  };
}