SupportedService.fromJson constructor

SupportedService.fromJson(
  1. Map json_
)

Implementation

SupportedService.fromJson(core.Map json_)
    : this(
        availableOnRestrictedVip:
            json_.containsKey('availableOnRestrictedVip')
                ? json_['availableOnRestrictedVip'] as core.bool
                : null,
        knownLimitations: json_.containsKey('knownLimitations')
            ? json_['knownLimitations'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        supportStage: json_.containsKey('supportStage')
            ? json_['supportStage'] as core.String
            : null,
        supportedMethods: json_.containsKey('supportedMethods')
            ? (json_['supportedMethods'] as core.List)
                .map((value) => MethodSelector.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );