Rule.fromJson constructor

Rule.fromJson(
  1. Map json_
)

Implementation

Rule.fromJson(core.Map json_)
  : this(
      destinations: (json_['destinations'] as core.List?)
          ?.map(
            (value) => Destination.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      sources: (json_['sources'] as core.List?)
          ?.map(
            (value) =>
                Source.fromJson(value as core.Map<core.String, core.dynamic>),
          )
          .toList(),
    );