toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'state': state.value,
  if (factorIds != null) 'factorIds': factorIds,
  if (providerConfigs != null)
    'providerConfigs': providerConfigs!.map((e) => e.toJson()).toList(),
};