VirtualRouterSpec.fromJson constructor

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

Implementation

factory VirtualRouterSpec.fromJson(Map<String, dynamic> json) {
  return VirtualRouterSpec(
    serviceNames: (json['serviceNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}