Service.fromJson constructor

Service.fromJson(
  1. Map json_
)

Implementation

Service.fromJson(core.Map json_)
  : this(
      annotations:
          (json_['annotations'] as core.Map<core.String, core.dynamic>?)?.map(
            (key, value) => core.MapEntry(key, value as core.String),
          ),
      endpoints: (json_['endpoints'] as core.List?)
          ?.map(
            (value) => Endpoint.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      name: json_['name'] as core.String?,
      uid: json_['uid'] as core.String?,
    );