AudioMapping.fromJson constructor

AudioMapping.fromJson(
  1. Map json_
)

Implementation

AudioMapping.fromJson(core.Map json_)
    : this(
        atomKey: json_.containsKey('atomKey')
            ? json_['atomKey'] as core.String
            : null,
        gainDb: json_.containsKey('gainDb')
            ? (json_['gainDb'] as core.num).toDouble()
            : null,
        inputChannel: json_.containsKey('inputChannel')
            ? json_['inputChannel'] as core.int
            : null,
        inputKey: json_.containsKey('inputKey')
            ? json_['inputKey'] as core.String
            : null,
        inputTrack: json_.containsKey('inputTrack')
            ? json_['inputTrack'] as core.int
            : null,
        outputChannel: json_.containsKey('outputChannel')
            ? json_['outputChannel'] as core.int
            : null,
      );