toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activeConfig != null) 'activeConfig': activeConfig!.toJson(),
      if (currentChannels != null)
        'currentChannels':
            currentChannels!.map((value) => value.toJson()).toList(),
      if (deviceMetadata != null) 'deviceMetadata': deviceMetadata!.toJson(),
      if (displayName != null) 'displayName': displayName!,
      if (fccId != null) 'fccId': fccId!,
      if (grantRangeAllowlists != null)
        'grantRangeAllowlists':
            grantRangeAllowlists!.map((value) => value.toJson()).toList(),
      if (grants != null)
        'grants': grants!.map((value) => value.toJson()).toList(),
      if (name != null) 'name': name!,
      if (preloadedConfig != null)
        'preloadedConfig': preloadedConfig!.toJson(),
      if (serialNumber != null) 'serialNumber': serialNumber!,
      if (state != null) 'state': state!,
    };