toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final enabled = this.enabled;
  final format = this.format;
  final path = this.path;
  final scope = this.scope;
  return {
    'Enabled': enabled,
    if (format != null) 'Format': format.toValue(),
    if (path != null) 'Path': path,
    if (scope != null) 'Scope': scope.toValue(),
  };
}