Usage.fromJson constructor

Usage.fromJson(
  1. Map json_
)

Implementation

Usage.fromJson(core.Map json_)
    : this(
        producerNotificationChannel:
            json_.containsKey('producerNotificationChannel')
                ? json_['producerNotificationChannel'] as core.String
                : null,
        requirements: json_.containsKey('requirements')
            ? (json_['requirements'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        rules: json_.containsKey('rules')
            ? (json_['rules'] as core.List)
                .map((value) => UsageRule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );