toJson method

Map<String, dynamic> toJson()

Implementation

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