AudioAtom.fromJson constructor

AudioAtom.fromJson(
  1. Map _json
)

Implementation

AudioAtom.fromJson(core.Map _json)
    : this(
        channels: _json.containsKey('channels')
            ? (_json['channels'] as core.List)
                .map((value) => AudioChannel.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        key: _json.containsKey('key') ? _json['key'] as core.String : null,
      );