ModuleMetadata.fromJson constructor

ModuleMetadata.fromJson(
  1. Map json_
)

Implementation

ModuleMetadata.fromJson(core.Map json_)
    : this(
        deliveryType: json_.containsKey('deliveryType')
            ? json_['deliveryType'] as core.String
            : null,
        dependencies: json_.containsKey('dependencies')
            ? (json_['dependencies'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        moduleType: json_.containsKey('moduleType')
            ? json_['moduleType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        targeting: json_.containsKey('targeting')
            ? ModuleTargeting.fromJson(
                json_['targeting'] as core.Map<core.String, core.dynamic>)
            : null,
      );