CommitmentsScopedList.fromJson constructor

CommitmentsScopedList.fromJson(
  1. Map json_
)

Implementation

CommitmentsScopedList.fromJson(core.Map json_)
    : this(
        commitments: json_.containsKey('commitments')
            ? (json_['commitments'] as core.List)
                .map((value) => Commitment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        warning: json_.containsKey('warning')
            ? CommitmentsScopedListWarning.fromJson(
                json_['warning'] as core.Map<core.String, core.dynamic>)
            : null,
      );