Rule.fromJson constructor

Rule.fromJson(
  1. Map json_
)

Implementation

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