Hl7V2Store.fromJson constructor

Hl7V2Store.fromJson(
  1. Map json_
)

Implementation

Hl7V2Store.fromJson(core.Map json_)
    : this(
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notificationConfigs: json_.containsKey('notificationConfigs')
            ? (json_['notificationConfigs'] as core.List)
                .map((value) => Hl7V2NotificationConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        parserConfig: json_.containsKey('parserConfig')
            ? ParserConfig.fromJson(
                json_['parserConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        rejectDuplicateMessage: json_.containsKey('rejectDuplicateMessage')
            ? json_['rejectDuplicateMessage'] as core.bool
            : null,
      );