toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final prodTrafficRoute = this.prodTrafficRoute;
  final targetGroups = this.targetGroups;
  final testTrafficRoute = this.testTrafficRoute;
  return {
    if (prodTrafficRoute != null) 'prodTrafficRoute': prodTrafficRoute,
    if (targetGroups != null) 'targetGroups': targetGroups,
    if (testTrafficRoute != null) 'testTrafficRoute': testTrafficRoute,
  };
}