toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final endpoints = this.endpoints;
  return {
    if (endpoints != null)
      'Endpoints': endpoints.map((k, e) => MapEntry(k.toValue(), e)),
  };
}