SelfManagedEventSource.fromJson constructor

SelfManagedEventSource.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SelfManagedEventSource.fromJson(Map<String, dynamic> json) {
  return SelfManagedEventSource(
    endpoints: (json['Endpoints'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(k.toEndPointType(),
            (e as List).whereNotNull().map((e) => e as String).toList())),
  );
}