ServiceContext.fromJson constructor

ServiceContext.fromJson(
  1. Map _json
)

Implementation

ServiceContext.fromJson(core.Map _json)
    : this(
        resourceType: _json.containsKey('resourceType')
            ? _json['resourceType'] as core.String
            : null,
        service: _json.containsKey('service')
            ? _json['service'] as core.String
            : null,
        version: _json.containsKey('version')
            ? _json['version'] as core.String
            : null,
      );