decode static method

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

Implementation

static AttachResponse? decode(Map<String, Object?> json) {
  try {
    return AttachResponse(
      rumEnabled: json['rumEnabled'] as bool,
    );
  } catch (e, st) {
    DatadogSdk.instance.internalLogger
        .sendToDatadog('Failed to deserialize AttachResponse: $e', st, null);
  }

  return null;
}