toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final disabled = this.disabled;
  final routes = this.routes;
  return {
    if (disabled != null) 'Disabled': disabled,
    if (routes != null) 'Routes': routes,
  };
}