BasicService.fromJson constructor

BasicService.fromJson(
  1. Map json_
)

Implementation

BasicService.fromJson(core.Map json_)
    : this(
        serviceLabels: json_.containsKey('serviceLabels')
            ? (json_['serviceLabels'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        serviceType: json_.containsKey('serviceType')
            ? json_['serviceType'] as core.String
            : null,
      );