decode static method

AttachResponse? decode(
  1. Map<String, Object?> json
)

Implementation

static AttachResponse? decode(Map<String, Object?> json) {
  try {
    return AttachResponse(
      loggingEnabled: json['loggingEnabled'] as bool,
      rumEnabled: json['rumEnabled'] as bool,
    );
  } catch (e, st) {
    // ATCHG - Change class name from DDSdk to AtatusSdk
    AtatusSdk.instance.internalLogger.sendToAtatus(
      'Failed to deserialize AttachResponse: $e',
      st,
      null,
    );
  }

  return null;
}