DestinationConfig.fromJson constructor

DestinationConfig.fromJson(
  1. Map json_
)

Implementation

DestinationConfig.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,
        key: json_.containsKey('key') ? json_['key'] as core.String : null,
      );